[vlc-devel] commit: embedded snapshot: use vlc_object_signal_unlocked instead of vlc_object_signal ( Olivier Aubert )

git version control git at videolan.org
Mon Sep 8 14:33:23 CEST 2008


vlc | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Mon Sep  8 14:21:00 2008 +0200| [493e0955678fa76d4800d3c6273e22e3378bf6c2] | committer: Olivier Aubert 

embedded snapshot: use vlc_object_signal_unlocked instead of vlc_object_signal

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=493e0955678fa76d4800d3c6273e22e3378bf6c2
---

 src/video_output/vout_intf.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/video_output/vout_intf.c b/src/video_output/vout_intf.c
index ea647f1..332c834 100644
--- a/src/video_output/vout_intf.c
+++ b/src/video_output/vout_intf.c
@@ -642,7 +642,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
         {
             msg_Err( p_vout, "Could not get snapshot" );
             image_HandlerDelete( p_image );
-            vlc_object_signal( p_dest );
+            vlc_object_signal_unlocked( p_dest );
             vlc_object_release( p_dest );
             return VLC_EGENERIC;
         }
@@ -654,7 +654,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
         {
             block_Release( p_block );
             image_HandlerDelete( p_image );
-            vlc_object_signal( p_dest );
+            vlc_object_signal_unlocked( p_dest );
             vlc_object_release( p_dest );
             return VLC_ENOMEM;
         }
@@ -671,7 +671,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
             block_Release( p_block );
             free( p_snapshot );
             image_HandlerDelete( p_image );
-            vlc_object_signal( p_dest );
+            vlc_object_signal_unlocked( p_dest );
             vlc_object_release( p_dest );
             return VLC_ENOMEM;
         }
@@ -682,7 +682,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
         block_Release( p_block );
 
         /* Unlock the object */
-        vlc_object_signal( p_dest );
+        vlc_object_signal_unlocked( p_dest );
         vlc_object_release( p_dest );
 
         image_HandlerDelete( p_image );




More information about the vlc-devel mailing list