Permalink
Browse files

Merge pull request #98 from hean01/bugfixes

Dont try unlock mutex when our intentions are to lock it :)
  • Loading branch information...
andoma committed Oct 2, 2012
2 parents 57dff30 + 4096024 commit 8d147a401c725b668f5eca5a773e2e5fdd5c3784
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/backend/shoutcast/shoutcast.c
@@ -153,7 +153,7 @@ static int sc_avio_read_packet(void *opaque, uint8_t *buf, int buf_size)
size_t rs = 0;
sc_shoutcast_t *sc = (sc_shoutcast_t*)opaque;
- hts_mutex_unlock(&sc->sc_stream_buffer_mutex);
+ hts_mutex_lock(&sc->sc_stream_buffer_mutex);
rs = htsbuf_read(sc->sc_stream_buffer, buf, buf_size);

0 comments on commit 8d147a4

Please sign in to comment.