tests: don't return FALSE from events

Returning FALSE from the event handler shuts down the sender.
This commit is contained in:
Wim Taymans 2011-11-28 13:52:00 +01:00
parent 005dab15f6
commit 948b1264b7
2 changed files with 2 additions and 7 deletions

View file

@ -38,12 +38,9 @@ event_func (GstPad * pad, GstObject * parent, GstEvent * event)
{ {
if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) { if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) {
have_eos = TRUE; have_eos = TRUE;
}
gst_event_unref (event); gst_event_unref (event);
return TRUE; return TRUE;
}
gst_event_unref (event);
return FALSE;
} }
static GstElement * static GstElement *

View file

@ -41,12 +41,10 @@ event_func (GstPad * pad, GstObject * parent, GstEvent * event)
{ {
if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) { if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) {
have_eos = TRUE; have_eos = TRUE;
gst_event_unref (event);
return TRUE;
} }
gst_event_unref (event); gst_event_unref (event);
return FALSE; return TRUE;
} }
static GstElement * static GstElement *