From 125512b1201c39c17e1b9fb8a58078036c48e153 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 21 Nov 2005 23:50:02 +0000 Subject: [PATCH] ext/lame/gstlame.c: Don't take the stream lock Original commit message from CVS: * ext/lame/gstlame.c: (gst_lame_sink_event): Don't take the stream lock --- ChangeLog | 5 +++++ ext/lame/gstlame.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1a7e411833..f0e5e7a85f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-22 Edward Hervey + + * ext/lame/gstlame.c: (gst_lame_sink_event): + Don't take the stream lock + 2005-11-21 Andy Wingo * ext/sidplay/gstsiddec.cc (gst_siddec_sink_event): diff --git a/ext/lame/gstlame.c b/ext/lame/gstlame.c index 6d5e11825f..e33f4d1729 100644 --- a/ext/lame/gstlame.c +++ b/ext/lame/gstlame.c @@ -904,9 +904,6 @@ gst_lame_sink_event (GstPad * pad, GstEvent * event) /* forward event */ gst_pad_push_event (lame->srcpad, event); - /* make streaming stop */ - GST_STREAM_LOCK (pad); - GST_STREAM_UNLOCK (pad); break; case GST_EVENT_FLUSH_STOP: { @@ -916,13 +913,11 @@ gst_lame_sink_event (GstPad * pad, GstEvent * event) GST_DEBUG_OBJECT (lame, "handling FLUSH stop event"); /* clear buffers */ - GST_STREAM_LOCK (pad); mp3_buffer_size = 7200; mp3_data = g_malloc (mp3_buffer_size); mp3_size = lame_encode_flush (lame->lgf, mp3_data, mp3_buffer_size); gst_pad_push_event (lame->srcpad, event); - GST_STREAM_UNLOCK (pad); break; } case GST_EVENT_TAG: