[vlc-commits] gst: initialize non-identical callbacks to NULL individually

Jean-Baptiste Kempf git at videolan.org
Sun Feb 14 20:30:36 CET 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Feb 14 20:30:04 2016 +0100| [aaaf40036c3054b81224bc6f72909651b19e3984] | committer: Jean-Baptiste Kempf

gst: initialize non-identical callbacks to NULL individually

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

 modules/codec/gstreamer/gstdecode.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/codec/gstreamer/gstdecode.c b/modules/codec/gstreamer/gstdecode.c
index 0db9ebe..42c6b27 100644
--- a/modules/codec/gstreamer/gstdecode.c
+++ b/modules/codec/gstreamer/gstdecode.c
@@ -534,7 +534,8 @@ static int OpenDecoder( vlc_object_t *p_this )
             "block", TRUE, "max-bytes", ( guint64 )1, NULL );
     gst_caps_unref( caps.p_sinkcaps );
     caps.p_sinkcaps = NULL;
-    cb.enough_data = cb.need_data = NULL;
+    cb.enough_data = NULL;
+    cb.need_data = NULL;
     cb.seek_data = seek_data_cb;
     gst_app_src_set_callbacks( GST_APP_SRC( p_sys->p_decode_src ),
             &cb, p_dec, NULL );



More information about the vlc-commits mailing list