[vlc-commits] video_output: decklink: allow to start without audio

Francois Cartegnie git at videolan.org
Tue Oct 4 14:34:51 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Oct  3 19:16:36 2016 +0200| [d3c74493abc248a18aae69c78b4ff4306121b3a5] | committer: Francois Cartegnie

video_output: decklink: allow to start without audio

setting audio rate to 0 won't expect audio module to start

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

 modules/video_output/decklink.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/decklink.cpp b/modules/video_output/decklink.cpp
index 148aed4..4cf2624 100644
--- a/modules/video_output/decklink.cpp
+++ b/modules/video_output/decklink.cpp
@@ -229,7 +229,9 @@ static struct decklink_sys_t *GetDLSys(vlc_object_t *obj)
             sys->p_output = NULL;
             sys->offset = 0;
             sys->users = 0;
-            sys->i_rate = -1;
+            sys->i_rate = var_InheritInteger(obj, AUDIO_CFG_PREFIX "audio-rate");
+            if(sys->i_rate > 0)
+                sys->i_rate = -1;
             vlc_mutex_init(&sys->lock);
             vlc_cond_init(&sys->cond);
             var_Create(libvlc, "decklink-sys", VLC_VAR_ADDRESS);



More information about the vlc-commits mailing list