summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorThiago Santos <thiagossantos@gmail.com>2017-06-06 21:48:19 -0700
committerThiago Santos <thiagossantos@gmail.com>2017-06-06 21:48:19 -0700
commit42f8e22f173250c2ebe336ef019e01abcdc06915 (patch)
treeddbe73f2b6a263e967b503d8568c90d7c23ef1f7 /gst
parent5a0901baa328c7587912742baf68ce50022e8bb1 (diff)
asfdemux: fix checking for header objects
The if 'and' condition was mixed up with the last parameter of the function and would lead to wrong results
Diffstat (limited to 'gst')
-rw-r--r--gst/asfdemux/gstasfdemux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c
index 5afeaabb..2b0fed16 100644
--- a/gst/asfdemux/gstasfdemux.c
+++ b/gst/asfdemux/gstasfdemux.c
@@ -2220,9 +2220,10 @@ gst_asf_demux_check_header (GstASFDemux * demux)
if (cdata == NULL) /* need more data */
return GST_ASF_DEMUX_CHECK_HEADER_NEED_DATA;
- if (asf_demux_peek_object (demux, cdata, ASF_OBJECT_HEADER_SIZE, &obj, FALSE
- && obj.id == ASF_OBJ_HEADER))
+ if (asf_demux_peek_object (demux, cdata, ASF_OBJECT_HEADER_SIZE, &obj, FALSE)
+ && obj.id == ASF_OBJ_HEADER) {
return GST_ASF_DEMUX_CHECK_HEADER_YES;
+ }
return GST_ASF_DEMUX_CHECK_HEADER_NO;
}