[xiph-commits] r2944 - liboggplay/trunk/plugin

shans at svn.annodex.net shans at svn.annodex.net
Fri Jun 15 22:05:56 PDT 2007


Author: shans
Date: 2007-06-15 22:05:56 -0700 (Fri, 15 Jun 2007)
New Revision: 2944

Modified:
   liboggplay/trunk/plugin/plugin_oggplay.c
Log:
Shutdown oggplay cleanly on video finish



Modified: liboggplay/trunk/plugin/plugin_oggplay.c
===================================================================
--- liboggplay/trunk/plugin/plugin_oggplay.c	2007-06-16 04:43:52 UTC (rev 2943)
+++ liboggplay/trunk/plugin/plugin_oggplay.c	2007-06-16 05:05:56 UTC (rev 2944)
@@ -219,6 +219,14 @@
     }
   }
 
+  /*
+   * we've reached the end of the file, so let's wait for the gui thread
+   * to tell us to finish up
+   */
+  while (pointers->shutdown_oggplay == 0) {
+    oggplay_millisleep(10);
+  }
+
 thread_shutdown:
   pointers->shutdown_oggplay = 0;
 



More information about the commits mailing list