mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 09:38:17 +00:00
sys/: Check for pad availability before sending event.
Original commit message from CVS: * sys/ximage/ximagesink.c: (gst_ximagesink_navigation_send_event): * sys/xvimage/xvimagesink.c: (gst_xvimagesink_navigation_send_event): Check for pad availability before sending event.
This commit is contained in:
parent
06f645c2e1
commit
b51100413b
3 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
2005-01-09 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* sys/ximage/ximagesink.c: (gst_ximagesink_navigation_send_event):
|
||||
* sys/xvimage/xvimagesink.c:
|
||||
(gst_xvimagesink_navigation_send_event):
|
||||
Check for pad availability before sending event.
|
||||
|
||||
2005-01-08 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* gst-plugins.spec.in:
|
||||
|
|
|
@ -1247,6 +1247,9 @@ gst_ximagesink_navigation_send_event (GstNavigation * navigation,
|
|||
gint x_offset, y_offset;
|
||||
double x, y;
|
||||
|
||||
if (!GST_PAD_PEER (GST_VIDEOSINK_PAD (ximagesink)))
|
||||
return;
|
||||
|
||||
event = gst_event_new (GST_EVENT_NAVIGATION);
|
||||
event->event_data.structure.structure = structure;
|
||||
|
||||
|
|
|
@ -1553,6 +1553,9 @@ gst_xvimagesink_navigation_send_event (GstNavigation * navigation,
|
|||
GstEvent *event;
|
||||
double x, y;
|
||||
|
||||
if (!GST_PAD_PEER (GST_VIDEOSINK_PAD (xvimagesink)))
|
||||
return;
|
||||
|
||||
event = gst_event_new (GST_EVENT_NAVIGATION);
|
||||
event->event_data.structure.structure = structure;
|
||||
|
||||
|
|
Loading…
Reference in a new issue