[vlc-commits] chromecast: clear out_streams on error

Thomas Guillem git at videolan.org
Fri Jan 26 14:27:07 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jan 25 18:00:47 2018 +0100| [cbb7cb29c0ab93c974aa36258459f8a347ba3956] | committer: Jean-Baptiste Kempf

chromecast: clear out_streams on error

(cherry picked from commit e26d41660ae28f432efc7c73c00866e1d014fec4)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/stream_out/chromecast/cast.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index 05e449ff75..fb1c06822b 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -584,6 +584,7 @@ static int Send(sout_stream_t *p_stream, sout_stream_id_sys_t *id,
             }
             p_sys->transcode_attempt_idx++;
             p_sys->es_changed = true;
+            p_sys->out_streams.clear();
             msg_Warn( p_stream, "Load failed detected. Switching to next "
                      "configuration index: %u", p_sys->transcode_attempt_idx );
         }



More information about the vlc-commits mailing list