summaryrefslogtreecommitdiff
path: root/gst/mxf
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-10-27 16:32:48 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-10-27 16:32:48 +0200
commit04a5eee15efcbca0b7210773c360c50963a26458 (patch)
tree0bb20e35c7baf5a335e4444432f615240f8226e6 /gst/mxf
parentde808c6439eccb6837979b04959ddafda8bae6fc (diff)
downloadgstreamer-plugins-bad-04a5eee15efcbca0b7210773c360c50963a26458.tar.gz
mxfmux: Remove some dead code that could never be called
Coverity CIDs #1328818, #1328819, #1328820.
Diffstat (limited to 'gst/mxf')
-rw-r--r--gst/mxf/mxfmux.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gst/mxf/mxfmux.c b/gst/mxf/mxfmux.c
index 8c4bf2d57..f6e95eee1 100644
--- a/gst/mxf/mxfmux.c
+++ b/gst/mxf/mxfmux.c
@@ -1503,8 +1503,6 @@ gst_mxf_mux_aggregate (GstAggregator * aggregator, gboolean timeout)
if ((!pad_eos || pad->have_complete_edit_unit ||
gst_adapter_available (pad->adapter) > 0 || buffer)
&& pad->last_timestamp < next_gc_timestamp) {
- if (best)
- gst_object_unref (best);
if (buffer)
gst_buffer_unref (buffer);
best = gst_object_ref (pad);
@@ -1513,8 +1511,6 @@ gst_mxf_mux_aggregate (GstAggregator * aggregator, gboolean timeout)
mux->last_gc_position++;
mux->last_gc_timestamp = next_gc_timestamp;
eos = FALSE;
- if (best)
- gst_object_unref (best);
if (buffer)
gst_buffer_unref (buffer);
best = NULL;
@@ -1541,8 +1537,7 @@ gst_mxf_mux_aggregate (GstAggregator * aggregator, gboolean timeout)
mux->state = GST_MXF_MUX_STATE_EOS;
return GST_FLOW_EOS;
} else {
- if (best)
- gst_object_unref (best);
+ g_assert_not_reached ();
}
return GST_FLOW_OK;