[vlc-devel] commit: libvlc API: Fix a possible SEGFAULT ( Cyril Mathé )

git version control git at videolan.org
Wed Jul 1 18:05:18 CEST 2009


vlc | branch: master | Cyril Mathé <cmathe at actech-innovation.com> | Wed Jul  1 15:29:53 2009 +0200| [72beea095e3e3f68357d342a5622785ebffeaab6] | committer: Rémi Duraffort 

libvlc API: Fix a possible SEGFAULT

Signed-off-by: Rémi Duraffort <ivoire at videolan.org>

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

 src/control/video.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/control/video.c b/src/control/video.c
index 20b9481..e4720e9 100644
--- a/src/control/video.c
+++ b/src/control/video.c
@@ -760,13 +760,17 @@ void libvlc_video_set_marquee_option_as_int( libvlc_media_player_t *p_mi,
         vout_thread_t * vout = GetVout( p_mi, &e );
         libvlc_exception_clear(&e);
         if (vout)
+        {
             vout_EnableFilter(vout, identifier, value, false);
+            vlc_object_release(vout);
+        }
         else
+        {
             libvlc_exception_raise( p_e, "No Vout" );
-        vlc_object_release(vout);
+        }
         return;
     }
-    
+
     vlc_object_t * marquee = get_marquee_object(p_mi);
     if(!marquee)
     {




More information about the vlc-devel mailing list