From 1e1e73a0f2f054a8577e77bff470fb871289794f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 21 Apr 2015 18:05:44 +0200 Subject: [PATCH] hlsdemux: Don't call unlock() just to call lock() immediately afterwards --- ext/hls/gsthlsdemux.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index fad5a7bd03..7c52683abd 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -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;