mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
adaptivedemux2: Move API lock usage
It is not needed so early Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3914>
This commit is contained in:
parent
2c9aef64c0
commit
630eb61273
1 changed files with 2 additions and 4 deletions
|
@ -2071,13 +2071,10 @@ gst_adaptive_demux_handle_seek_event (GstAdaptiveDemux * demux,
|
||||||
|
|
||||||
GST_INFO_OBJECT (demux, "Received seek event");
|
GST_INFO_OBJECT (demux, "Received seek event");
|
||||||
|
|
||||||
GST_API_LOCK (demux);
|
|
||||||
|
|
||||||
gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start,
|
gst_event_parse_seek (event, &rate, &format, &flags, &start_type, &start,
|
||||||
&stop_type, &stop);
|
&stop_type, &stop);
|
||||||
|
|
||||||
if (format != GST_FORMAT_TIME) {
|
if (format != GST_FORMAT_TIME) {
|
||||||
GST_API_UNLOCK (demux);
|
|
||||||
GST_WARNING_OBJECT (demux,
|
GST_WARNING_OBJECT (demux,
|
||||||
"Adaptive demuxers only support TIME-based seeking");
|
"Adaptive demuxers only support TIME-based seeking");
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
|
@ -2086,15 +2083,16 @@ gst_adaptive_demux_handle_seek_event (GstAdaptiveDemux * demux,
|
||||||
|
|
||||||
if (flags & GST_SEEK_FLAG_SEGMENT) {
|
if (flags & GST_SEEK_FLAG_SEGMENT) {
|
||||||
GST_FIXME_OBJECT (demux, "Handle segment seeks");
|
GST_FIXME_OBJECT (demux, "Handle segment seeks");
|
||||||
GST_API_UNLOCK (demux);
|
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
seqnum = gst_event_get_seqnum (event);
|
seqnum = gst_event_get_seqnum (event);
|
||||||
|
|
||||||
|
GST_API_LOCK (demux);
|
||||||
if (!GST_ADAPTIVE_SCHEDULER_LOCK (demux)) {
|
if (!GST_ADAPTIVE_SCHEDULER_LOCK (demux)) {
|
||||||
GST_LOG_OBJECT (demux, "Failed to acquire scheduler context");
|
GST_LOG_OBJECT (demux, "Failed to acquire scheduler context");
|
||||||
|
GST_API_UNLOCK (demux);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue