mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
initialise pad->convertfunc only once return FALSE in the default handler if an event wasn't handled
Original commit message from CVS: initialise pad->convertfunc only once return FALSE in the default handler if an event wasn't handled
This commit is contained in:
parent
b0ab53ea6a
commit
ea5d0235bd
1 changed files with 1 additions and 2 deletions
|
@ -216,7 +216,6 @@ gst_real_pad_init (GstRealPad *pad)
|
|||
pad->linkfunc = NULL;
|
||||
pad->getcapsfunc = NULL;
|
||||
|
||||
pad->convertfunc = gst_pad_convert_default;
|
||||
pad->eventfunc = gst_pad_event_default;
|
||||
pad->convertfunc = gst_pad_convert_default;
|
||||
pad->queryfunc = gst_pad_query_default;
|
||||
|
@ -2908,7 +2907,7 @@ gst_pad_event_default_dispatch (GstPad *pad, GstElement *element,
|
|||
}
|
||||
gst_event_unref (event);
|
||||
g_list_free (orig);
|
||||
return TRUE;
|
||||
return (GST_PAD_DIRECTION (pad) == GST_PAD_SINK);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue