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

Thomas Guillem git at videolan.org
Fri Feb 23 08:29:46 CET 2018


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

chromecast: force mp3 transcoding for the last try

(cherry picked from commit 6feeeb5f99708618700657ac41bbe2d6baabc246)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 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