Commit 49a51710 authored by Julien Moutte Moutte's avatar Julien Moutte Moutte
Browse files

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.
parent bc85c3da
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:
......
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment