chromecast: don't reload if disabled track is removed
authorThomas Guillem <thomas@gllm.fr>
Fri, 19 Jan 2018 17:23:12 +0000 (18:23 +0100)
committerThomas Guillem <thomas@gllm.fr>
Fri, 19 Jan 2018 17:23:57 +0000 (18:23 +0100)
modules/stream_out/chromecast/cast.cpp

index 46dc3dd..bfcfbbd 100644 (file)
@@ -236,6 +236,7 @@ static void Del(sout_stream_t *p_stream, sout_stream_id_sys_t *id)
                     if (*out_it == id)
                     {
                         p_sys->out_streams.erase(out_it);
+                        p_sys->es_changed = true;
                         break;
                     }
                     out_it++;
@@ -245,7 +246,6 @@ static void Del(sout_stream_t *p_stream, sout_stream_id_sys_t *id)
             es_format_Clean( &p_sys_id->fmt );
             free( p_sys_id );
             p_sys->streams.erase( it );
-            p_sys->es_changed = true;
             break;
         }
         it++;