From c6ae4cb8cabd887db33e169fa17102c26c3a776e Mon Sep 17 00:00:00 2001 From: Julien Moutte Date: Fri, 5 Mar 2004 14:50:23 +0000 Subject: [PATCH] sys/xvimage/xvimagesink.c: Check if we have a window before clearing it. Original commit message from CVS: 2004-03-05 Julien MOUTTE * sys/xvimage/xvimagesink.c: (gst_xvimagesink_change_state): Check if we have a window before clearing it. --- ChangeLog | 5 +++++ sys/xvimage/xvimagesink.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5e5c1cd6a2..f60ae11861 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-03-05 Julien MOUTTE + + * sys/xvimage/xvimagesink.c: (gst_xvimagesink_change_state): Check if + we have a window before clearing it. + 2004-03-05 Julien MOUTTE * sys/ximage/ximagesink.c: (gst_ximagesink_change_state): Check if we diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 671712c87c..b8c71db201 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -1140,7 +1140,8 @@ gst_xvimagesink_change_state (GstElement *element) gst_xvimagesink_update_colorbalance (xvimagesink); break; case GST_STATE_READY_TO_PAUSED: - gst_xvimagesink_xwindow_clear (xvimagesink, xvimagesink->xwindow); + if (xvimagesink->xwindow) + gst_xvimagesink_xwindow_clear (xvimagesink, xvimagesink->xwindow); xvimagesink->time = 0; break; case GST_STATE_PAUSED_TO_PLAYING: