From dc212cdb3de27c3a42310342fcd5ee9fa78556a1 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 1 Mar 2007 09:29:34 +0000 Subject: gst/rtsp/gstrtpdec.c: Make state change to PAUSED NO_PREROLL because that's what it will be in the future and rtspsrc... Original commit message from CVS: * gst/rtsp/gstrtpdec.c: (gst_rtpdec_change_state): Make state change to PAUSED NO_PREROLL because that's what it will be in the future and rtspsrc relies on it. * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_stream_configure_transport), (gst_rtspsrc_change_state): Don't error out when we don't get an error from the state change function. --- gst/rtsp/gstrtpdec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gst/rtsp/gstrtpdec.c') diff --git a/gst/rtsp/gstrtpdec.c b/gst/rtsp/gstrtpdec.c index a4ea0d46..9320f7df 100644 --- a/gst/rtsp/gstrtpdec.c +++ b/gst/rtsp/gstrtpdec.c @@ -313,8 +313,6 @@ gst_rtpdec_change_state (GstElement * element, GstStateChange transition) rtpdec = GST_RTPDEC (element); switch (transition) { - case GST_STATE_CHANGE_PAUSED_TO_READY: - break; default: break; } @@ -322,7 +320,9 @@ gst_rtpdec_change_state (GstElement * element, GstStateChange transition) ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition); switch (transition) { - case GST_STATE_CHANGE_PAUSED_TO_READY: + case GST_STATE_CHANGE_READY_TO_PAUSED: + case GST_STATE_CHANGE_PLAYING_TO_PAUSED: + ret = GST_STATE_CHANGE_NO_PREROLL; break; default: break; -- cgit