mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
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
This commit is contained in:
parent
aa5c8d66bd
commit
125512b120
2 changed files with 5 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-11-22 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
|
* ext/lame/gstlame.c: (gst_lame_sink_event):
|
||||||
|
Don't take the stream lock
|
||||||
|
|
||||||
2005-11-21 Andy Wingo <wingo@pobox.com>
|
2005-11-21 Andy Wingo <wingo@pobox.com>
|
||||||
|
|
||||||
* ext/sidplay/gstsiddec.cc (gst_siddec_sink_event):
|
* ext/sidplay/gstsiddec.cc (gst_siddec_sink_event):
|
||||||
|
|
|
@ -904,9 +904,6 @@ gst_lame_sink_event (GstPad * pad, GstEvent * event)
|
||||||
/* forward event */
|
/* forward event */
|
||||||
gst_pad_push_event (lame->srcpad, event);
|
gst_pad_push_event (lame->srcpad, event);
|
||||||
|
|
||||||
/* make streaming stop */
|
|
||||||
GST_STREAM_LOCK (pad);
|
|
||||||
GST_STREAM_UNLOCK (pad);
|
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_FLUSH_STOP:
|
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");
|
GST_DEBUG_OBJECT (lame, "handling FLUSH stop event");
|
||||||
|
|
||||||
/* clear buffers */
|
/* clear buffers */
|
||||||
GST_STREAM_LOCK (pad);
|
|
||||||
mp3_buffer_size = 7200;
|
mp3_buffer_size = 7200;
|
||||||
mp3_data = g_malloc (mp3_buffer_size);
|
mp3_data = g_malloc (mp3_buffer_size);
|
||||||
mp3_size = lame_encode_flush (lame->lgf, mp3_data, mp3_buffer_size);
|
mp3_size = lame_encode_flush (lame->lgf, mp3_data, mp3_buffer_size);
|
||||||
|
|
||||||
gst_pad_push_event (lame->srcpad, event);
|
gst_pad_push_event (lame->srcpad, event);
|
||||||
GST_STREAM_UNLOCK (pad);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GST_EVENT_TAG:
|
case GST_EVENT_TAG:
|
||||||
|
|
Loading…
Reference in a new issue