summaryrefslogtreecommitdiff
path: root/gst/matroska/matroska-parse.c
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2015-06-22 13:05:29 +0900
committerLuis de Bethencourt <luis.bg@samsung.com>2015-06-22 12:26:23 +0100
commit9a1ed36b7a73120309ea4cacfeba48dc939a0616 (patch)
tree08d9767a086bc6709a07e27bf129411dacb630d1 /gst/matroska/matroska-parse.c
parente97df1e0974659695e5d859fd18bd54d81362b84 (diff)
matroska: remove useless check
No need to check for context availability while freeing. We are inside inside a code block with a condition that dereferences context. if (context->type == 0 ... https://bugzilla.gnome.org/show_bug.cgi?id=751306
Diffstat (limited to 'gst/matroska/matroska-parse.c')
-rw-r--r--gst/matroska/matroska-parse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gst/matroska/matroska-parse.c b/gst/matroska/matroska-parse.c
index 53b4eaca7..11de18b50 100644
--- a/gst/matroska/matroska-parse.c
+++ b/gst/matroska/matroska-parse.c
@@ -940,9 +940,7 @@ gst_matroska_parse_add_stream (GstMatroskaParse * parse, GstEbmlRead * ebml)
parse->common.num_streams--;
g_ptr_array_remove_index (parse->common.src, parse->common.num_streams);
g_assert (parse->common.src->len == parse->common.num_streams);
- if (context) {
- gst_matroska_track_free (context);
- }
+ gst_matroska_track_free (context);
return ret;
}