sys/xvimage/xvimagesink.c: Check if we have a window before clearing it.

Original commit message from CVS:
2004-03-05  Julien MOUTTE <julien@moutte.net>

* sys/xvimage/xvimagesink.c: (gst_xvimagesink_change_state): Check if
we have a window before clearing it.
This commit is contained in:
Julien Moutte 2004-03-05 14:50:23 +00:00
parent 49a51710c9
commit c6ae4cb8ca
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-03-05 Julien MOUTTE <julien@moutte.net>
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_change_state): Check if
we have a window before clearing it.
2004-03-05 Julien MOUTTE <julien@moutte.net>
* sys/ximage/ximagesink.c: (gst_ximagesink_change_state): Check if we

View file

@ -1140,6 +1140,7 @@ gst_xvimagesink_change_state (GstElement *element)
gst_xvimagesink_update_colorbalance (xvimagesink);
break;
case GST_STATE_READY_TO_PAUSED:
if (xvimagesink->xwindow)
gst_xvimagesink_xwindow_clear (xvimagesink, xvimagesink->xwindow);
xvimagesink->time = 0;
break;