From: Thibault Saunier Date: Sat, 1 Dec 2012 16:53:06 +0000 (-0300) Subject: track: Force video/x-raw in raw gaps X-Git-Tag: 1.19.3~493^2~2144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0cc5c6b87c1b519518ad784fcc30326d2af926c;p=platform%2Fupstream%2Fgstreamer.git track: Force video/x-raw in raw gaps --- diff --git a/ges/ges-track.c b/ges/ges-track.c index d6b6493..052a366 100644 --- a/ges/ges-track.c +++ b/ges/ges-track.c @@ -319,7 +319,6 @@ composition_duration_cb (GstElement * composition, g_object_get (composition, "duration", &duration, NULL); - if (track->priv->duration != duration) { GST_DEBUG_OBJECT (track, "composition duration : %" GST_TIME_FORMAT " current : %" @@ -347,12 +346,9 @@ create_element_for_raw_audio_gap (GESTrack * track) static GstElement * create_element_for_raw_video_gap (GESTrack * track) { - GstElement *elem; - - elem = gst_element_factory_make ("videotestsrc", NULL); - g_object_set (elem, "pattern", 2, NULL); - - return elem; + return gst_parse_bin_from_description + ("videotestsrc pattern=2 name=src ! capsfilter caps=video/x-raw", TRUE, + NULL); } /* Remove @object from @track, but keeps it in the sequence this is needed