[vlc-commits] sout: sdi: require captions

Francois Cartegnie git at videolan.org
Wed Oct 10 09:47:12 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Oct  4 12:09:02 2018 +0200| [8327047e06f0d1b76c5c5aeaafcf07b7c54c15c6] | committer: Francois Cartegnie

sout: sdi: require captions

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

 modules/stream_out/sdi/SDIOutput.cpp | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/modules/stream_out/sdi/SDIOutput.cpp b/modules/stream_out/sdi/SDIOutput.cpp
index 127ecf3519..2bb3de98e3 100644
--- a/modules/stream_out/sdi/SDIOutput.cpp
+++ b/modules/stream_out/sdi/SDIOutput.cpp
@@ -164,9 +164,16 @@ void SDIOutput::Del(AbstractStream *s)
     delete s;
 }
 
-int SDIOutput::Control(int, va_list)
+int SDIOutput::Control(int i_query, va_list args)
 {
-    return VLC_EGENERIC;
+    switch(i_query)
+    {
+        case SOUT_STREAM_WANTS_SUBSTREAMS:
+            *va_arg(args, bool *) = true;
+            return VLC_SUCCESS;
+        default:
+            return VLC_EGENERIC;
+    };
 }
 
 AbstractStream *SDIOutput::createStream(const StreamID &id,



More information about the vlc-commits mailing list