diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 5127785d3d..3e227f956c 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -1429,7 +1429,7 @@ gst_rtspsrc_create_stream (GstRTSPSrc * src, GstSDPMessage * sdp, gint idx) stream->last_ret = GST_FLOW_NOT_LINKED; stream->added = FALSE; stream->disabled = FALSE; - stream->id = src->numstreams++; + stream->id = idx; stream->eos = FALSE; stream->discont = TRUE; stream->seqbase = -1; @@ -1579,7 +1579,6 @@ gst_rtspsrc_cleanup (GstRTSPSrc * src) gst_bin_remove (GST_BIN_CAST (src), src->manager); src->manager = NULL; } - src->numstreams = 0; if (src->props) gst_structure_free (src->props); src->props = NULL; diff --git a/gst/rtsp/gstrtspsrc.h b/gst/rtsp/gstrtspsrc.h index 1751b30d8c..0ee08880e3 100644 --- a/gst/rtsp/gstrtspsrc.h +++ b/gst/rtsp/gstrtspsrc.h @@ -193,7 +193,6 @@ struct _GstRTSPSrc { GstSDPMessage *sdp; gboolean from_sdp; - gint numstreams; GList *streams; GstStructure *props; gboolean need_activate;