[vlc-commits] commit: libvlc_media_player_stop: destroys the kept vout ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Tue Jun 8 20:41:45 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jun  8 21:05:44 2010 +0300| [88714ed20713649826bd3379563d138684565e9b] | committer: Rémi Denis-Courmont 

libvlc_media_player_stop: destroys the kept vout

(cherry picked from commit 20141e2c65bd1b5c924943046ec640adc5ec7a4a)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=88714ed20713649826bd3379563d138684565e9b
---

 src/control/media_player.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/control/media_player.c b/src/control/media_player.c
index cac7a20..adbc8eb 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -742,6 +742,9 @@ void libvlc_media_player_stop( libvlc_media_player_t *p_mi )
         event.type = libvlc_MediaPlayerStopped;
         libvlc_event_send( p_mi->p_event_manager, &event );
     }
+
+    if( p_mi->input.p_resource != NULL )
+        input_resource_TerminateVout( p_mi->input.p_resource );
     unlock_input(p_mi);
 }
 



More information about the vlc-commits mailing list