mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
parent
16db86c1be
commit
fe45de837c
1 changed files with 0 additions and 9 deletions
|
@ -1240,16 +1240,10 @@ gst_mxf_mux_handle_eos (GstMXFMux * mux)
|
||||||
gst_util_uint64_scale ((mux->last_gc_position + 1) * GST_SECOND,
|
gst_util_uint64_scale ((mux->last_gc_position + 1) * GST_SECOND,
|
||||||
mux->min_edit_rate.d, mux->min_edit_rate.n);
|
mux->min_edit_rate.d, mux->min_edit_rate.n);
|
||||||
|
|
||||||
if (best)
|
|
||||||
gst_object_unref (best);
|
|
||||||
best = NULL;
|
|
||||||
|
|
||||||
if (pad->have_complete_edit_unit ||
|
if (pad->have_complete_edit_unit ||
|
||||||
gst_adapter_available (pad->adapter) > 0 || buffer) {
|
gst_adapter_available (pad->adapter) > 0 || buffer) {
|
||||||
have_data = TRUE;
|
have_data = TRUE;
|
||||||
if (pad->last_timestamp < next_gc_timestamp) {
|
if (pad->last_timestamp < next_gc_timestamp) {
|
||||||
if (best)
|
|
||||||
gst_object_unref (best);
|
|
||||||
best = gst_object_ref (pad);
|
best = gst_object_ref (pad);
|
||||||
if (buffer)
|
if (buffer)
|
||||||
gst_buffer_unref (buffer);
|
gst_buffer_unref (buffer);
|
||||||
|
@ -1262,9 +1256,6 @@ gst_mxf_mux_handle_eos (GstMXFMux * mux)
|
||||||
if (have_data && !l->next) {
|
if (have_data && !l->next) {
|
||||||
mux->last_gc_position++;
|
mux->last_gc_position++;
|
||||||
mux->last_gc_timestamp = next_gc_timestamp;
|
mux->last_gc_timestamp = next_gc_timestamp;
|
||||||
if (best)
|
|
||||||
gst_object_unref (best);
|
|
||||||
best = NULL;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue