[vlc-commits] resource: use vout_Stop()
Rémi Denis-Courmont
git at videolan.org
Fri Jan 18 22:13:04 CET 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jan 18 22:50:17 2019 +0200| [4cfe635e6e675331a772adcf090c60cce174d3da] | committer: Rémi Denis-Courmont
resource: use vout_Stop()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4cfe635e6e675331a772adcf090c60cce174d3da
---
src/input/resource.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/input/resource.c b/src/input/resource.c
index 4be13f2973..db083c8cd2 100644
--- a/src/input/resource.c
+++ b/src/input/resource.c
@@ -442,14 +442,11 @@ void input_resource_PutVout(input_resource_t *p_resource,
msg_Dbg(p_resource->p_parent, "destroying vout (already one saved or active)");
vout_Close(vout);
} else {
- vout_configuration_t cfg = { .vout = vout };
-
msg_Dbg(p_resource->p_parent, "saving a free vout");
vout_FlushAll(vout);
vout_FlushSubpictureChannel(vout, -1);
-
- p_resource->p_vout_free = vout_Request(p_resource->p_parent, &cfg,
- NULL);
+ vout_Stop(vout);
+ p_resource->p_vout_free = vout;
}
vlc_mutex_unlock( &p_resource->lock );
}
More information about the vlc-commits
mailing list