mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
rgvolume: Send all events through the proxypads instead of just sending to the target
Otherwise the sticky events are missing on the proxypads.
This commit is contained in:
parent
381e6912a5
commit
41e1af3751
1 changed files with 1 additions and 5 deletions
|
@ -448,12 +448,10 @@ static gboolean
|
|||
gst_rg_volume_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||
{
|
||||
GstRgVolume *self;
|
||||
GstPad *volume_sink_pad;
|
||||
GstEvent *send_event = event;
|
||||
gboolean res;
|
||||
|
||||
self = GST_RG_VOLUME (parent);
|
||||
volume_sink_pad = gst_ghost_pad_get_target (GST_GHOST_PAD (pad));
|
||||
|
||||
switch (GST_EVENT_TYPE (event)) {
|
||||
case GST_EVENT_TAG:
|
||||
|
@ -477,12 +475,10 @@ gst_rg_volume_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
}
|
||||
|
||||
if (G_LIKELY (send_event != NULL))
|
||||
res = gst_pad_send_event (volume_sink_pad, send_event);
|
||||
res = gst_pad_event_default (pad, parent, send_event);
|
||||
else
|
||||
res = TRUE;
|
||||
|
||||
gst_object_unref (volume_sink_pad);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue