rtspsrc: just use the SDP index as the stream id

Use the index of the media stream in the SDP as the stream id instead of
keeping a separate counter.
This commit is contained in:
Wim Taymans 2014-03-05 16:19:19 +01:00
parent e96f0c03ef
commit 27d883fe64
2 changed files with 1 additions and 3 deletions

View file

@ -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;

View file

@ -193,7 +193,6 @@ struct _GstRTSPSrc {
GstSDPMessage *sdp;
gboolean from_sdp;
gint numstreams;
GList *streams;
GstStructure *props;
gboolean need_activate;