[vlc-commits] resource: send the vout added event even if re-used

Thomas Guillem git at videolan.org
Mon Oct 22 16:20:39 CEST 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Oct 22 16:08:58 2018 +0200| [ce37262c2986c52467a1b99d57b8b8abafe0e35e] | committer: Thomas Guillem

resource: send the vout added event even if re-used

Since the vout removed event is sent when the vout is saved for future use.

This fixes vout removed and added events that were not matching (this will be
tested by the player test).

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

 src/input/resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/resource.c b/src/input/resource.c
index 7fad698ffe..70cfa2dee2 100644
--- a/src/input/resource.c
+++ b/src/input/resource.c
@@ -248,7 +248,7 @@ static vout_thread_t *RequestVout( input_resource_t *p_resource,
         TAB_APPEND( p_resource->i_vout, p_resource->pp_vout, p_vout );
         vlc_mutex_unlock( &p_resource->lock_hold );
 
-        if( p_resource->p_input && cfg.vout != p_vout )
+        if( p_resource->p_input )
             input_SendEventVout( p_resource->p_input,
                 &(struct vlc_input_event_vout) {
                     .action = VLC_INPUT_EVENT_VOUT_ADDED,



More information about the vlc-commits mailing list