Use the index of the media stream in the SDP as the stream id instead of
keeping a separate counter.
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;
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;
GstSDPMessage *sdp;
gboolean from_sdp;
- gint numstreams;
GList *streams;
GstStructure *props;
gboolean need_activate;