# define DEBUG_MAIN_THREAD
# endif // Debug
+#ifndef __WXGTK20__
extern void wxapp_install_idle_handler();
extern bool g_isIdle;
+#endif
extern bool g_mainThreadLocked;
#endif // wxGTK
{
DEBUG_MAIN_THREAD // TODO: Is this neccessary?
+#ifndef __WXGTK20__
if (g_isIdle) // FIXME: Why is needed? For wxYield? ??
wxapp_install_idle_handler();
+#endif
wxYield(); // FIXME: RN: X Server gets an error/crash if I don't do
// this or a messagebox beforehand?!?!??
return false;
}
+ // free current media resources
+ gst_element_set_state (m_playbin, GST_STATE_NULL);
+
// Make sure the passed URI is valid and tell playbin to load it
// non-file uris are encoded
wxASSERT(gst_uri_protocol_is_valid("file"));