*http_status = stream->last_status_code;
}
}
+
+ /* changing src element state might try to join the streaming thread, so
+ * we must not hold the manifest lock.
+ */
+ GST_MANIFEST_UNLOCK (demux);
} else {
GST_MANIFEST_UNLOCK (demux);
if (stream->last_ret == GST_FLOW_OK)
ret = GST_FLOW_CUSTOM_ERROR;
}
- /* changing src element state might try to join the streaming thread, so
- * we must not hold the manifest lock.
- */
- GST_MANIFEST_UNLOCK (demux);
-
stream->src_at_ready = FALSE;
gst_element_set_locked_state (stream->src, TRUE);