Commit 611dc2d6 authored by David Schleef's avatar David Schleef

Call gst_pad_event_default() on EOS. Don't unref event after calling...

Call gst_pad_event_default() on EOS.  Don't unref event after calling gst_pad_event_default().  Fixes #119155

Original commit message from CVS:
Call gst_pad_event_default() on EOS.  Don't unref event after calling
gst_pad_event_default().  Fixes #119155
parent df6946e6
......@@ -281,7 +281,8 @@ gst_esdsink_chain (GstPad *pad, GstBuffer *buf)
switch(GST_EVENT_TYPE(event)){
case GST_EVENT_EOS:
break;
gst_pad_event_default(pad, event);
return;
case GST_EVENT_DISCONTINUOUS:
{
gint64 value;
......@@ -293,11 +294,12 @@ gst_esdsink_chain (GstPad *pad, GstBuffer *buf)
//esdsink->handled = 0;
}
//esdsink->resync = TRUE;
break;
gst_pad_event_default(pad, event);
return;
}
default:
gst_pad_event_default(pad, event);
break;
return;
}
gst_event_unref(event);
return;
......
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