matroskademux: remove unnecessary check
authorLuis de Bethencourt <luis.bg@samsung.com>
Fri, 23 Jan 2015 17:35:51 +0000 (17:35 +0000)
committerLuis de Bethencourt <luis.bg@samsung.com>
Fri, 23 Jan 2015 17:35:51 +0000 (17:35 +0000)
No matter if gst_matroska_read_common_parse_index_cuetrack () returns that the
flow is OK or not, the check there will be a break from the switch. Removing the
check since the outcome is the same.

CID #1265762

gst/matroska/matroska-read-common.c

index 1f5130a..51494a1 100644 (file)
@@ -1503,10 +1503,8 @@ gst_matroska_read_common_parse_index_pointentry (GstMatroskaReadCommon *
         /* position in the file + track to which it belongs */
       case GST_MATROSKA_ID_CUETRACKPOSITIONS:
       {
-        if ((ret =
-                gst_matroska_read_common_parse_index_cuetrack (common, ebml,
-                    &nentries)) != GST_FLOW_OK)
-          break;
+        ret = gst_matroska_read_common_parse_index_cuetrack (common, ebml,
+            &nentries);
         break;
       }