- GstClockTime *sink_running_time = g_new (GstClockTime, 1);
- *sink_running_time = splitmux->reference_ctx->out_running_time;
- g_object_set_qdata_full (G_OBJECT (splitmux->sink),
- RUNNING_TIME, sink_running_time, g_free);
+ if (splitmux->async_finalize) {
+ GstClockTime *sink_running_time = g_new (GstClockTime, 1);
+ *sink_running_time = splitmux->reference_ctx->out_running_time;
+ g_object_set_qdata_full (G_OBJECT (splitmux->sink),
+ RUNNING_TIME, sink_running_time, g_free);
+ }