[vlc-commits] resource: inline code of input_resource_TerminateVout()
Rémi Denis-Courmont
git at videolan.org
Fri Jan 18 22:12:40 CET 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jan 18 19:39:18 2019 +0200| [8296d6d750c7157db405dad2584df38f7fb9c6d7] | committer: Rémi Denis-Courmont
resource: inline code of input_resource_TerminateVout()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8296d6d750c7157db405dad2584df38f7fb9c6d7
---
src/input/resource.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/input/resource.c b/src/input/resource.c
index f14b467aab..096efc19b5 100644
--- a/src/input/resource.c
+++ b/src/input/resource.c
@@ -488,8 +488,11 @@ void input_resource_HoldVouts( input_resource_t *p_resource, vout_thread_t ***pp
void input_resource_TerminateVout( input_resource_t *p_resource )
{
- input_resource_RequestVout( p_resource, NULL, false );
+ vlc_mutex_lock(&p_resource->lock);
+ RequestVout(p_resource, NULL, false);
+ vlc_mutex_unlock(&p_resource->lock);
}
+
bool input_resource_HasVout( input_resource_t *p_resource )
{
vlc_mutex_lock( &p_resource->lock );
More information about the vlc-commits
mailing list