summaryrefslogtreecommitdiff
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:50:20 -0700
commit45e54dd7a2a1e0d066d09b8f9b613a4427bc9fdc (patch)
tree85211e36236fb8991bc47d7e5cfaf3f101bc20be
parentd2374716e2cf8d7ecf9b478e5c13e2461cab0a4d (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
-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;
}