sys/ximage/ximagesink.c: Check if we have a window before clearing it.

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

* sys/ximage/ximagesink.c: (gst_ximagesink_change_state): Check if we
have a window before clearing it.
This commit is contained in:
Julien Moutte 2004-03-05 14:40:41 +00:00
parent bc85c3da12
commit 49a51710c9
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-03-05 Julien MOUTTE <julien@moutte.net>
* sys/ximage/ximagesink.c: (gst_ximagesink_change_state): Check if we
have a window before clearing it.
2004-03-05 Thomas Vander Stichele <thomas at apestaart dot org>
* gconf/gstreamer.schemas.in:

View file

@ -865,7 +865,8 @@ gst_ximagesink_change_state (GstElement *element)
return GST_STATE_FAILURE;
break;
case GST_STATE_READY_TO_PAUSED:
gst_ximagesink_xwindow_clear (ximagesink, ximagesink->xwindow);
if (ximagesink->xwindow)
gst_ximagesink_xwindow_clear (ximagesink, ximagesink->xwindow);
ximagesink->time = 0;
break;
case GST_STATE_PAUSED_TO_PLAYING: