[vlc-commits] chromecast: don't fallback to original pos in case of error

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


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Feb 22 16:54:17 2018 +0100| [a09526ce3a086ac7c52805a2f642bbe063a0d330] | committer: Thomas Guillem

chromecast: don't fallback to original pos in case of error

Since the original position can be way in advance.

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

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

 modules/stream_out/chromecast/chromecast_demux.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/stream_out/chromecast/chromecast_demux.cpp b/modules/stream_out/chromecast/chromecast_demux.cpp
index 08867a620e..bc85cf1271 100644
--- a/modules/stream_out/chromecast/chromecast_demux.cpp
+++ b/modules/stream_out/chromecast/chromecast_demux.cpp
@@ -299,8 +299,7 @@ struct demux_sys_t
                 *va_arg( args, double * ) = pos;
                 return VLC_SUCCESS;
             }
-            /* Fallback to original command */
-            break;
+            return VLC_EGENERIC;
         }
         case DEMUX_GET_TIME:
             *va_arg(args, int64_t *) = getTime();



More information about the vlc-commits mailing list