From 1835d5eb9c76f5c8eab4fe6ac8fca3bd0f846564 Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Sun, 21 Dec 2003 22:11:46 +0000 Subject: examples/gstplay/player.c: using g_print instead of g_message. Original commit message from CVS: * examples/gstplay/player.c: (got_time_tick), (got_stream_length), (got_video_size), (main): using g_print instead of g_message. * gst-libs/gst/play/gstplay.c: (gst_play_pipeline_setup): Fixing EOS signal which was not emitted because of "switch" element added to the bin but not connected. (Removing from the bin temporarily) --- gst-libs/gst/play/gstplay.c | 13 ++++++++----- gst-libs/gst/play/play.c | 13 ++++++++----- 2 files changed, 16 insertions(+), 10 deletions(-) (limited to 'gst-libs/gst/play') diff --git a/gst-libs/gst/play/gstplay.c b/gst-libs/gst/play/gstplay.c index eb4d161c..8e0c9754 100644 --- a/gst-libs/gst/play/gstplay.c +++ b/gst-libs/gst/play/gstplay.c @@ -108,11 +108,14 @@ gst_play_pipeline_setup (GstPlay *play) g_hash_table_insert (play->priv->elements, "video_queue", video_queue); /* Colorspace conversion */ - /* FIXME: Use ffcolorspace and fallback to Hermes on failure ?*/ - video_colorspace = gst_element_factory_make ("colorspace", + video_colorspace = gst_element_factory_make ("ffcolorspace", "video_colorspace"); - if (!GST_IS_ELEMENT (video_colorspace)) - return FALSE; + if (!GST_IS_ELEMENT (video_colorspace)) { + video_colorspace = gst_element_factory_make ("colorspace", + "video_colorspace"); + if (!GST_IS_ELEMENT (video_colorspace)) + return FALSE; + } g_hash_table_insert (play->priv->elements, "video_colorspace", video_colorspace); @@ -147,7 +150,7 @@ gst_play_pipeline_setup (GstPlay *play) g_hash_table_insert (play->priv->elements, "video_switch", video_switch); - gst_bin_add (GST_BIN (work_thread), video_switch); + /*gst_bin_add (GST_BIN (work_thread), video_switch);*/ /* Connecting autoplugger to video switch and video switch to video output gst_element_link (autoplugger, video_switch); diff --git a/gst-libs/gst/play/play.c b/gst-libs/gst/play/play.c index eb4d161c..8e0c9754 100644 --- a/gst-libs/gst/play/play.c +++ b/gst-libs/gst/play/play.c @@ -108,11 +108,14 @@ gst_play_pipeline_setup (GstPlay *play) g_hash_table_insert (play->priv->elements, "video_queue", video_queue); /* Colorspace conversion */ - /* FIXME: Use ffcolorspace and fallback to Hermes on failure ?*/ - video_colorspace = gst_element_factory_make ("colorspace", + video_colorspace = gst_element_factory_make ("ffcolorspace", "video_colorspace"); - if (!GST_IS_ELEMENT (video_colorspace)) - return FALSE; + if (!GST_IS_ELEMENT (video_colorspace)) { + video_colorspace = gst_element_factory_make ("colorspace", + "video_colorspace"); + if (!GST_IS_ELEMENT (video_colorspace)) + return FALSE; + } g_hash_table_insert (play->priv->elements, "video_colorspace", video_colorspace); @@ -147,7 +150,7 @@ gst_play_pipeline_setup (GstPlay *play) g_hash_table_insert (play->priv->elements, "video_switch", video_switch); - gst_bin_add (GST_BIN (work_thread), video_switch); + /*gst_bin_add (GST_BIN (work_thread), video_switch);*/ /* Connecting autoplugger to video switch and video switch to video output gst_element_link (autoplugger, video_switch); -- cgit v1.2.1