summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2015-03-31 00:20:13 +1100
committerJan Schmidt <jan@centricular.com>2015-03-31 00:20:48 +1100
commitc0d4986c8d3fc7b61cce88677a7ca36593a12915 (patch)
tree01a11b42512b04ab846e9ade00dabe1a8f9877fd /gst
parent592cab1512b52142f10f144cfdbb0abba40e924b (diff)
flv: When passing seek event upstream, hold a ref.
In case upstream can't handle the seek, make sure we keep a ref on the event to attempt to handle it ourselves.
Diffstat (limited to 'gst')
-rw-r--r--gst/flv/gstflvdemux.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c
index 9a6928f02..afa1490b3 100644
--- a/gst/flv/gstflvdemux.c
+++ b/gst/flv/gstflvdemux.c
@@ -3190,9 +3190,12 @@ gst_flv_demux_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_SEEK:
/* Try to push upstream first */
+ gst_event_ref (event);
ret = gst_pad_push_event (demux->sinkpad, event);
- if (ret)
+ if (ret) {
+ gst_event_unref (event);
break;
+ }
if (demux->random_access) {
ret = gst_flv_demux_handle_seek_pull (demux, event, TRUE);
} else {