[vlc-devel] [PATCH 1/5] chromecast: better error reporting of unknown commands

Steve Lhomme robux4 at videolabs.io
Thu Sep 24 14:42:49 CEST 2015


---
 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
     {
-- 
2.5.1



More information about the vlc-devel mailing list