diff options
author | Jose Quaresma <quaresma.jose@gmail.com> | 2020-08-12 11:57:10 +0100 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-09-25 12:03:18 +0000 |
commit | dd8711fbebe6f9fd8c74a2398dda069687d41cb7 (patch) | |
tree | 914b3f25f7e1bb91b6ee8fdabad34afc5d890adb | |
parent | 274fdf2bbce92f749ff794461c2d73cc202a242a (diff) | |
download | gstreamer-plugins-bad-dd8711fbebe6f9fd8c74a2398dda069687d41cb7.tar.gz |
proxysink: event_function needs to handle the event when it is disconnecetd from proxysrc
without this a disconneted proxysink fail when goes to play with error:
Internal data stream error.
streaming stopped, reason error (-5)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1607>
-rw-r--r-- | gst/proxy/gstproxysink.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/proxy/gstproxysink.c b/gst/proxy/gstproxysink.c index c53e65217..f44f8ec46 100644 --- a/gst/proxy/gstproxysink.c +++ b/gst/proxy/gstproxysink.c @@ -226,8 +226,10 @@ gst_proxy_sink_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) self->pending_sticky_events = TRUE; ret = TRUE; } - } else + } else { gst_event_unref (event); + ret = TRUE; + } return ret; } |