[vlc-commits] chromecast: better error reporting of unknown commands

Steve Lhomme git at videolan.org
Tue Oct 6 13:15:48 CEST 2015


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Thu Sep 24 14:42:49 2015 +0200| [6239a046928fe7d941b5356e42545891acd35db0] | committer: Jean-Baptiste Kempf

chromecast: better error reporting of unknown commands

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/stream_out/chromecast/cast.cpp |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/modules/stream_out/chromecast/cast.cpp b/modules/stream_out/chromecast/cast.cpp
index a11b7ce..b8f2cb9 100644
--- a/modules/stream_out/chromecast/cast.cpp
+++ b/modules/stream_out/chromecast/cast.cpp
@@ -623,7 +623,7 @@ static int processMessage(sout_stream_t *p_stream, const castchannel::CastMessag
         }
         else
         {
-            msg_Err(p_stream, "Heartbeat command not supported");
+            msg_Err(p_stream, "Heartbeat command not supported: %s", type.c_str());
             i_ret = -1;
         }
 
@@ -733,6 +733,12 @@ static int processMessage(sout_stream_t *p_stream, const castchannel::CastMessag
             p_sys->i_status = CHROMECAST_CONNECTION_DEAD;
             vlc_mutex_unlock(&p_sys->lock);
         }
+        else
+        {
+            msg_Err(p_stream, "Connection command not supported: %s",
+                    type.c_str());
+            i_ret = -1;
+        }
     }
     else
     {



More information about the vlc-commits mailing list