rtspsrc: set SOURCE flag at init time

Fixes #654816.
This commit is contained in:
Mark Nauwelaerts 2011-07-19 13:38:01 +02:00
parent 2591a882ae
commit 9764b57b0a

View file

@ -528,6 +528,8 @@ gst_rtspsrc_init (GstRTSPSrc * src, GstRTSPSrcClass * g_class)
g_static_rec_mutex_init (src->state_rec_lock);
src->state = GST_RTSP_STATE_INVALID;
GST_OBJECT_FLAG_SET (src, GST_ELEMENT_IS_SOURCE);
}
static void
@ -5491,7 +5493,6 @@ gst_rtspsrc_open_from_sdp (GstRTSPSrc * src, GstSDPMessage * sdp,
}
src->state = GST_RTSP_STATE_INIT;
GST_OBJECT_FLAG_SET (src, GST_ELEMENT_IS_SOURCE);
/* setup streams */
if ((res = gst_rtspsrc_setup_streams (src, async)) < 0)