[vlc-commits] transcode: set b_master_sync correctly

Ilkka Ollakka git at videolan.org
Sat Nov 29 12:33:57 CET 2014


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Thu Oct 16 11:30:55 2014 +0300| [fd89198cdb7e6121380f374235ffdb7f6314d98e] | committer: Ilkka Ollakka

transcode: set b_master_sync correctly

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

 modules/stream_out/transcode/transcode.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_out/transcode/transcode.c b/modules/stream_out/transcode/transcode.c
index e925e80..4bd72c2 100644
--- a/modules/stream_out/transcode/transcode.c
+++ b/modules/stream_out/transcode/transcode.c
@@ -341,7 +341,7 @@ static int Open( vlc_object_t *p_this )
 
     p_sys->f_scale = var_GetFloat( p_stream, SOUT_CFG_PREFIX "scale" );
 
-    p_sys->b_master_sync = var_InheritURational( p_stream, &p_sys->fps_num, &p_sys->fps_den, SOUT_CFG_PREFIX "fps" );
+    p_sys->b_master_sync = var_InheritURational( p_stream, &p_sys->fps_num, &p_sys->fps_den, SOUT_CFG_PREFIX "fps" ) == VLC_SUCCESS;
 
     p_sys->i_width = var_GetInteger( p_stream, SOUT_CFG_PREFIX "width" );
 



More information about the vlc-commits mailing list