mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-02 00:32:43 +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->last_ret = GST_FLOW_NOT_LINKED;
|
||||||
stream->added = FALSE;
|
stream->added = FALSE;
|
||||||
stream->disabled = FALSE;
|
stream->disabled = FALSE;
|
||||||
stream->id = src->numstreams++;
|
stream->id = idx;
|
||||||
stream->eos = FALSE;
|
stream->eos = FALSE;
|
||||||
stream->discont = TRUE;
|
stream->discont = TRUE;
|
||||||
stream->seqbase = -1;
|
stream->seqbase = -1;
|
||||||
|
@ -1579,7 +1579,6 @@ gst_rtspsrc_cleanup (GstRTSPSrc * src)
|
||||||
gst_bin_remove (GST_BIN_CAST (src), src->manager);
|
gst_bin_remove (GST_BIN_CAST (src), src->manager);
|
||||||
src->manager = NULL;
|
src->manager = NULL;
|
||||||
}
|
}
|
||||||
src->numstreams = 0;
|
|
||||||
if (src->props)
|
if (src->props)
|
||||||
gst_structure_free (src->props);
|
gst_structure_free (src->props);
|
||||||
src->props = NULL;
|
src->props = NULL;
|
||||||
|
|
|
@ -193,7 +193,6 @@ struct _GstRTSPSrc {
|
||||||
|
|
||||||
GstSDPMessage *sdp;
|
GstSDPMessage *sdp;
|
||||||
gboolean from_sdp;
|
gboolean from_sdp;
|
||||||
gint numstreams;
|
|
||||||
GList *streams;
|
GList *streams;
|
||||||
GstStructure *props;
|
GstStructure *props;
|
||||||
gboolean need_activate;
|
gboolean need_activate;
|
||||||
|
|
Loading…
Reference in a new issue