mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
adder: Update for new collectpads2 event handling API
This commit is contained in:
parent
b363d4a103
commit
c07271ea02
1 changed files with 10 additions and 2 deletions
|
@ -1299,13 +1299,21 @@ gst_adder_event (GstCollectPads2 * pads, GstCollectData2 * pad,
|
|||
if (GST_EVENT_TYPE (event) == GST_EVENT_FLUSH_STOP) {
|
||||
if (g_atomic_int_compare_and_exchange (&adder->flush_stop_pending,
|
||||
TRUE, FALSE)) {
|
||||
return FALSE;
|
||||
|
||||
return gst_pad_event_default (pad->pad, GST_OBJECT (user_data), event);
|
||||
} else {
|
||||
gst_event_unref (event);
|
||||
return TRUE;
|
||||
}
|
||||
} else {
|
||||
return FALSE;
|
||||
if (GST_EVENT_TYPE (event) == GST_EVENT_SEGMENT ||
|
||||
GST_EVENT_TYPE (event) == GST_EVENT_CAPS ||
|
||||
GST_EVENT_TYPE (event) == GST_EVENT_EOS) {
|
||||
gst_event_unref (event);
|
||||
return TRUE;
|
||||
} else {
|
||||
return gst_pad_event_default (pad->pad, GST_OBJECT (user_data), event);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue