From kde-commits Tue Jan 22 14:32:42 2008 From: Jens Bache-Wiig Date: Tue, 22 Jan 2008 14:32:42 +0000 To: kde-commits Subject: kdereview/phonon/gstreamer Message-Id: <1201012362.240279.1554.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=120101251902384 SVN commit 764767 by jbache: Fixed a gstreamer warning as suggested by Andre Magalhaes M +6 -3 backend.cpp --- trunk/kdereview/phonon/gstreamer/backend.cpp #764766:764767 @@ -77,14 +77,17 @@ Backend::~Backend() { - g_main_loop_quit (loop); + if (loop && g_main_loop_is_running (loop)) + g_main_loop_quit (loop); // Wait for thread to finish QTime timeOut; timeOut.start(); while (isRunning() && timeOut.elapsed() < 2000) wait(1); - g_main_loop_unref (loop); - loop = 0; + if (loop) { + g_main_loop_unref (loop); + loop = 0; + } } gboolean Backend::busCall(GstBus *bus, GstMessage *msg, gpointer data)