Commit c0d4986c authored by Jan Schmidt's avatar Jan Schmidt

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.
parent 592cab15
......@@ -3190,9 +3190,12 @@ gst_flv_demux_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
switch (GST_EVENT_TYPE (event)) {
/* 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);
if (demux->random_access) {
ret = gst_flv_demux_handle_seek_pull (demux, event, TRUE);
} else {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment