File the-board-gstreamer-1.0.patch of Package the-board

From 685e0b644d27e1fe53c6ab5bee59e14ae57ca757 Mon Sep 17 00:00:00 2001
From: Dominique Leuenberger <dimstar@opensuse.org>
Date: Tue, 23 Oct 2012 23:39:47 +0200
Subject: [PATCH] Port to GStreamer 1.0

---
 configure.ac               | 4 ++--
 src/tb/tb-sound-player.c   | 5 ++---
 src/tb/tb-sound-recorder.c | 3 +--
 3 files changed, 5 insertions(+), 7 deletions(-)

Index: the-board-0.1.3/configure.ac
===================================================================
--- the-board-0.1.3.orig/configure.ac
+++ the-board-0.1.3/configure.ac
@@ -70,7 +70,7 @@ PKG_CHECK_MODULES(THE_BOARD,
                   mx-1.0 >= $MX_MIN_VERSION
                   gtk+-3.0 >= $GTK_MIN_VERSION
                   clutter-gtk-1.0 >= $CLUTTER_GTK_MIN_VERSION
-                  clutter-gst-1.0 >= $CLUTTER_GST_MIN_VERSION)
+                  clutter-gst-2.0 >= $CLUTTER_GST_MIN_VERSION)
 
 PKG_CHECK_MODULES(TB,
                   glib-2.0 >= $GLIB_MIN_VERSION
@@ -78,7 +78,7 @@ PKG_CHECK_MODULES(TB,
                   clutter-1.0 >= $CLUTTER_MIN_VERSION
                   mx-1.0 >= $MX_MIN_VERSION
                   gtk+-3.0 >= $GTK_MIN_VERSION
-                  gstreamer-0.10)
+                  gstreamer-1.0)
 
 AC_ARG_WITH([cheese],
              AC_HELP_STRING([--without-cheese],[disable cheese support]),,
Index: the-board-0.1.3/src/tb/tb-sound-player.c
===================================================================
--- the-board-0.1.3.orig/src/tb/tb-sound-player.c
+++ the-board-0.1.3/src/tb/tb-sound-player.c
@@ -187,14 +187,13 @@ static void
 tb_sound_player_query_duration (TbSoundPlayer *player)
 {
   TbSoundPlayerPrivate *priv;
-  GstFormat format = GST_FORMAT_TIME;
   gdouble new_duration, difference;
   gboolean success;
   gint64 duration;
 
   priv = TB_SOUND_PLAYER_GET_PRIVATE (player);
 
-  success = gst_element_query_duration (priv->pipeline, &format, &duration);
+  success = gst_element_query_duration (priv->pipeline, GST_FORMAT_TIME, &duration);
 
   if (G_UNLIKELY (success != TRUE))
     return;
Index: the-board-0.1.3/src/tb/tb-sound-recorder.c
===================================================================
--- the-board-0.1.3.orig/src/tb/tb-sound-recorder.c
+++ the-board-0.1.3/src/tb/tb-sound-recorder.c
@@ -145,7 +145,6 @@ tb_sound_recorder_tick_timeout (gpointer
 {
   TbSoundRecorderPrivate *priv;
   TbSoundRecorder *recorder;
-  GstFormat format = GST_FORMAT_TIME;
   gint64 val = -1;
   gint secs;
 
@@ -156,7 +155,7 @@ tb_sound_recorder_tick_timeout (gpointer
   if (priv->state != TB_SOUND_RECORDER_STATE_RECORDING)
     return FALSE;
 
-  if (gst_element_query_position (priv->pipeline, &format, &val) && val != -1)
+  if (gst_element_query_position (priv->pipeline, GST_FORMAT_TIME, &val) && val != -1)
     {
       secs = val / GST_SECOND;
 
openSUSE Build Service is sponsored by