Skip to content

WIP: porting #1

@kroketio

Description

@kroketio

Current challenges:

  1. This code uses libhal to (afaik) determine if the screen is connected/disconnected (see mafw-gst-renderer.[h|c]). libhal is deprecated (depends on old glib, etc.) and replaced by udev. Port libhal to udev.
  2. This code uses gnome-vfs for signals surrounding the mounting/unmounting of filesystems. This (probably) allows the mafw renderer to quit rendering when e.g a mount is disconnected. However, we dont have gnome-vfs so it will need a replacement.
  3. This code assumes GStreamer 0.* which is old. 1.18 in in Leste's repos, expect API breakage

You can at least pass the configure step with the following patch:

diff --git a/configure.ac b/configure.ac
index b3d2806..db93d94 100644
--- a/configure.ac
+++ b/configure.ac
@@ -45,20 +45,17 @@ AC_DEFUN([ENABLED_BY_DEFAULT], [dnl
 
 dnl Prerequisites.
 
-GSTREAMER_VERSION=0.10.20
+GSTREAMER_VERSION=1.18.0
 
 AM_PATH_GLIB_2_0(2.15.0, [], [], [glib])
 PKG_CHECK_MODULES(DEPS,
 		  gobject-2.0 >= 2.0
-		  gstreamer-0.10 >= $GSTREAMER_VERSION
-		  gstreamer-plugins-base-0.10 >= $GSTREAMER_VERSION
+		  gstreamer-1.0 >= $GSTREAMER_VERSION
 		  mafw >= 0.1
 		  libosso >= 2.0
 		  x11
-		  hal
 		  totem-plparser
-                  gconf-2.0 >= 2.0
-		  gnome-vfs-2.0
+      gconf-2.0 >= 2.0
 		  mce
 		  dbus-1
 )
diff --git a/debian/control b/debian/control
index 2223335..9b0e553 100644
--- a/debian/control
+++ b/debian/control
@@ -3,11 +3,11 @@ Section: misc
 Priority: optional
 Maintainer: Mika Tapojarvi <mika.tapojarvi@sse.fi>
 Build-Depends: debhelper (>= 4.0.0), libglib2.0-dev,
-               libgstreamer0.10-dev (>= 0.10.20-0maemo3),
-               libgstreamer-plugins-base0.10-dev (>= 0.10.20-0maemo5),
+               libgstreamer1.0-dev (>= 1.0.0-0maemo3),
+               libgstreamer-plugins-base1.0-dev (>= 1.0.0-0maemo5),
                libx11-dev, libosso-dev (>= 2.0), libmafw0-dev (>= 0.1),
-               checkmore, gstreamer0.10-plugins-base,
-               gstreamer0.10-plugins-good,
+               checkmore, gstreamer1.0-plugins-base,
+               gstreamer1.0-plugins-good,
                libhal-dev, libtotem-plparser-dev, libpulse-dev (>= 0.9.15-1),
                libgconf2-dev, libosso-gnomevfs2-dev, mce-dev,
                libdbus-1-dev
diff --git a/mafw-gst-renderer-uninstalled.pc.in b/mafw-gst-renderer-uninstalled.pc.in
index 8496267..cbd604d 100644
--- a/mafw-gst-renderer-uninstalled.pc.in
+++ b/mafw-gst-renderer-uninstalled.pc.in
@@ -8,4 +8,4 @@ Description: MAFW local renderer
 Version: @VERSION@
 Libs: ${libdir}/mafw-gst-renderer.la
 Cflags: -I${includedir}
-Requires: gobject-2.0 gstreamer-0.10 mafw
+Requires: gobject-2.0 gstreamer-1.0 mafw

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions