[longomatch] Enable compatibility with GStreamer 0.10.22
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [longomatch] Enable compatibility with GStreamer 0.10.22
- Date: Sat, 5 Sep 2009 14:58:19 +0000 (UTC)
commit 6ded09c045cb15045327907774aff0316febbc0e
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Sep 5 16:57:40 2009 +0200
Enable compatibility with GStreamer 0.10.22
libcesarplayer/src/bacon-video-widget-gst-0.10.c | 6 +++++-
libcesarplayer/src/gst-video-editor.c | 10 +++++++++-
2 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/libcesarplayer/src/bacon-video-widget-gst-0.10.c b/libcesarplayer/src/bacon-video-widget-gst-0.10.c
index 69a40f0..905acbc 100644
--- a/libcesarplayer/src/bacon-video-widget-gst-0.10.c
+++ b/libcesarplayer/src/bacon-video-widget-gst-0.10.c
@@ -1289,7 +1289,8 @@ bvw_handle_element_message (BaconVideoWidget *bvw, GstMessage *msg)
bvw->priv->missing_plugins =
g_list_prepend (bvw->priv->missing_plugins, gst_message_ref (msg));
goto done;
- } else {
+ } else {
+ #if 0
GstNavigationMessageType nav_msg_type =
gst_navigation_message_get_type (msg);
@@ -1315,6 +1316,7 @@ bvw_handle_element_message (BaconVideoWidget *bvw, GstMessage *msg)
default:
break;
}
+ #endif
}
unhandled:
@@ -3447,6 +3449,7 @@ bacon_video_widget_redraw_last_frame (BaconVideoWidget *bvw)
}
}
+#if 0
static void
bvw_do_navigation_command (BaconVideoWidget * bvw, GstNavigationCommand command)
{
@@ -3554,6 +3557,7 @@ bacon_video_widget_dvd_event (BaconVideoWidget * bvw,
break;
}
}
+#endif
/**
* bacon_video_widget_set_logo:
diff --git a/libcesarplayer/src/gst-video-editor.c b/libcesarplayer/src/gst-video-editor.c
index 837019e..2e2fcad 100644
--- a/libcesarplayer/src/gst-video-editor.c
+++ b/libcesarplayer/src/gst-video-editor.c
@@ -1215,7 +1215,15 @@ gst_video_editor_new (GError ** err)
/* We use an audiotestsrc mutted and with a low priority */
gnlsource = gst_element_factory_make ("gnlsource", "gnlaudiofakesrc");
audiotestsrc = gst_element_factory_make ("audiotestsrc", "audiotestsrc");
- g_object_set (G_OBJECT(gnlsource), "expandable",TRUE,NULL);
+ /*Check for 'expandable' property, gnonlin >= 0.11.2*/
+ if (g_object_class_find_property (G_OBJECT_GET_CLASS(gnlsource), "expandable")){
+ g_print("encontrada");
+ g_object_set (G_OBJECT(gnlsource), "expandable",TRUE,NULL);
+ }
+ else {
+ g_object_set (G_OBJECT(gnlsource), "start",(gint64)0,NULL);
+ g_object_set (G_OBJECT(gnlsource), "duration",(gint64)G_MAXINT32,NULL);
+ }
g_object_set (G_OBJECT(gnlsource), "priority",999,NULL);
g_object_set (G_OBJECT(audiotestsrc), "volume",(double)0,NULL);
gst_bin_add(GST_BIN(gnlsource), audiotestsrc);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]