summaryrefslogtreecommitdiff
path: root/ext/hls
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-04-21 18:05:44 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-04-21 18:30:33 +0200
commit1e1e73a0f2f054a8577e77bff470fb871289794f (patch)
tree4c961b534491174c54e536b39901e38c09e8edc6 /ext/hls
parent70193761b865f48811456fc42513404903fc24d6 (diff)
downloadgstreamer-plugins-bad-1e1e73a0f2f054a8577e77bff470fb871289794f.tar.gz
hlsdemux: Don't call unlock() just to call lock() immediately afterwards
Diffstat (limited to 'ext/hls')
-rw-r--r--ext/hls/gsthlsdemux.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c
index fad5a7bd0..7c52683ab 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;