From: Thiago Santos Date: Mon, 17 Oct 2011 23:14:54 +0000 (+0000) Subject: playsinkconvertbin: Be more consistent with ghostpad targets X-Git-Tag: 1.19.3~511^2~6555^2~363 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a07701164a35f736ba8ba881bbcc12e9f9140ce;p=platform%2Fupstream%2Fgstreamer.git playsinkconvertbin: Be more consistent with ghostpad targets Set up targets on READY->PAUSED state change to passthrough by default. This prevents the targets from being unset on the first run, while the 'raw' variable would mean that some target is set. --- diff --git a/gst/playback/gstplaysinkconvertbin.c b/gst/playback/gstplaysinkconvertbin.c index 7c1bb68..6123d11 100644 --- a/gst/playback/gstplaysinkconvertbin.c +++ b/gst/playback/gstplaysinkconvertbin.c @@ -464,6 +464,13 @@ gst_play_sink_convert_bin_change_state (GstElement * element, (GDestroyNotify) gst_object_unref); GST_PLAY_SINK_CONVERT_BIN_UNLOCK (self); break; + case GST_STATE_CHANGE_READY_TO_PAUSED: + GST_PLAY_SINK_CONVERT_BIN_LOCK (self); + gst_segment_init (&self->segment, GST_FORMAT_UNDEFINED); + gst_play_sink_convert_bin_set_targets (self, TRUE); + self->raw = FALSE; + GST_PLAY_SINK_CONVERT_BIN_UNLOCK (self); + break; default: break; }