mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
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:
parent
e96f0c03ef
commit
27d883fe64
2 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -193,7 +193,6 @@ struct _GstRTSPSrc {
|
|||
|
||||
GstSDPMessage *sdp;
|
||||
gboolean from_sdp;
|
||||
gint numstreams;
|
||||
GList *streams;
|
||||
GstStructure *props;
|
||||
gboolean need_activate;
|
||||
|
|
Loading…
Reference in a new issue