mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-07 08:39:54 +00:00
queue2: handle CAPS event and drop it if operating in ring buffer mode
Fixes "Unexpected event of kind caps can't be added in temp file" warning when doing download buffering.
This commit is contained in:
parent
8c864712e6
commit
39054884fd
1 changed files with 13 additions and 0 deletions
|
@ -1923,6 +1923,19 @@ gst_queue2_locked_enqueue (GstQueue2 * queue, gpointer item,
|
|||
item = NULL;
|
||||
}
|
||||
break;
|
||||
case GST_EVENT_CAPS:{
|
||||
GstCaps *caps;
|
||||
|
||||
gst_event_parse_caps (event, &caps);
|
||||
GST_INFO ("got caps: %" GST_PTR_FORMAT, caps);
|
||||
|
||||
if (!QUEUE_IS_USING_QUEUE (queue)) {
|
||||
GST_LOG ("Dropping caps event, not using queue");
|
||||
gst_event_unref (event);
|
||||
item = NULL;
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
if (!QUEUE_IS_USING_QUEUE (queue))
|
||||
goto unexpected_event;
|
||||
|
|
Loading…
Reference in a new issue