rtspsrc: find_stream_by_channel should ignore unconfigured streams
https://bugzilla.gnome.org/show_bug.cgi?id=777101
This commit is contained in:
parent
a9056a8a7e
commit
a8eb0515f1
@ -1339,7 +1339,10 @@ find_stream_by_id (GstRTSPStream * stream, gint * id)
|
|||||||
static gint
|
static gint
|
||||||
find_stream_by_channel (GstRTSPStream * stream, gint * channel)
|
find_stream_by_channel (GstRTSPStream * stream, gint * channel)
|
||||||
{
|
{
|
||||||
if (stream->channel[0] == *channel || stream->channel[1] == *channel)
|
/* ignore unconfigured channels here (e.g., those that
|
||||||
|
* were explicitly skipped during SETUP) */
|
||||||
|
if ((stream->channelpad[0] != NULL) &&
|
||||||
|
(stream->channel[0] == *channel || stream->channel[1] == *channel))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user