[vlc-commits] chromecast: force mp3 transcoding for the last try

Thomas Guillem git at videolan.org
Thu Feb 22 15:48:12 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Feb 22 15:46:21 2018 +0100| [6feeeb5f99708618700657ac41bbe2d6baabc246] | committer: Thomas Guillem

chromecast: force mp3 transcoding for the last try

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

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

diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index 730b7d864e..98bdf1dec7 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -1045,6 +1045,11 @@ bool sout_stream_sys_t::UpdateOutput( sout_stream_t *p_stream )
                 break;
         }
 
+        /* If we were already transcoding: force mp3 because maybe the CC may
+         * have failed because of vorbis. */
+        if (transcoding_state & TRANSCODING_AUDIO)
+            b_audio_mp3 = true;
+
         /* TODO: provide audio samplerate and channels */
         ssout << "transcode{";
         char s_fourcc[5];



More information about the vlc-commits mailing list