mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
hlsdemux: Don't call unlock() just to call lock() immediately afterwards
This commit is contained in:
parent
70193761b8
commit
1e1e73a0f2
1 changed files with 0 additions and 2 deletions
|
@ -381,14 +381,12 @@ gst_hls_demux_seek (GstAdaptiveDemux * demux, GstEvent * seek)
|
|||
}
|
||||
current_pos += file->duration;
|
||||
}
|
||||
GST_M3U8_CLIENT_UNLOCK (hlsdemux->client);
|
||||
|
||||
if (walk == NULL) {
|
||||
GST_DEBUG_OBJECT (demux, "seeking further than track duration");
|
||||
current_sequence++;
|
||||
}
|
||||
|
||||
GST_M3U8_CLIENT_LOCK (hlsdemux->client);
|
||||
GST_DEBUG_OBJECT (demux, "seeking to sequence %u", (guint) current_sequence);
|
||||
hlsdemux->reset_pts = TRUE;
|
||||
hlsdemux->client->sequence = current_sequence;
|
||||
|
|
Loading…
Reference in a new issue