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) ...@@ -281,7 +281,8 @@ gst_esdsink_chain (GstPad *pad, GstBuffer *buf)
switch(GST_EVENT_TYPE(event)){ switch(GST_EVENT_TYPE(event)){
case GST_EVENT_EOS: case GST_EVENT_EOS:
break; gst_pad_event_default(pad, event);
return;
case GST_EVENT_DISCONTINUOUS: case GST_EVENT_DISCONTINUOUS:
{ {
gint64 value; gint64 value;
...@@ -293,11 +294,12 @@ gst_esdsink_chain (GstPad *pad, GstBuffer *buf) ...@@ -293,11 +294,12 @@ gst_esdsink_chain (GstPad *pad, GstBuffer *buf)
//esdsink->handled = 0; //esdsink->handled = 0;
} }
//esdsink->resync = TRUE; //esdsink->resync = TRUE;
break; gst_pad_event_default(pad, event);
return;
} }
default: default:
gst_pad_event_default(pad, event); gst_pad_event_default(pad, event);
break; return;
} }
gst_event_unref(event); gst_event_unref(event);
return; 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