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:
Ronald S. Bultje 2005-01-09 00:07:30 +00:00
parent 06f645c2e1
commit b51100413b
3 changed files with 13 additions and 0 deletions

View file

@ -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:

View file

@ -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;

View file

@ -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;