qtdemux: Fix compiler warning
authorSebastian Dröge <sebastian@centricular.com>
Tue, 10 Oct 2017 15:04:50 +0000 (18:04 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 10 Oct 2017 15:04:50 +0000 (18:04 +0300)
qtdemux.c: In function ‘gst_qtdemux_configure_stream’:
qtdemux.c:7764:34: error: suggest parentheses around ‘&&’ within ‘||’ [-Werror=parentheses]
     if ((stream->n_samples == 1) && (stream->first_duration == 0)
         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

gst/isomp4/qtdemux.c

index 85bab55..5a78702 100644 (file)
@@ -7761,7 +7761,7 @@ gst_qtdemux_configure_stream (GstQTDemux * qtdemux, QtDemuxStream * stream)
      * qt does not have a fixed framerate. */
     gboolean fps_available = TRUE;
 
-    if ((stream->n_samples == 1) && (stream->first_duration == 0)
+    if ((stream->n_samples == 1 && stream->first_duration == 0)
         || (qtdemux->fragmented && stream->n_samples_moof == 1)) {
       /* still frame */
       CUR_STREAM (stream)->fps_n = 0;