mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
gst/switch/gstswitch.c (gst_switch_set_property): Don't push buffers from app thread when unsetting `queue-buffers', ...
Original commit message from CVS: 2007-12-05 Andy Wingo <wingo@pobox.com> * gst/switch/gstswitch.c (gst_switch_set_property): Don't push buffers from app thread when unsetting `queue-buffers', it's dangerous and the chain function will do it for us anyway.
This commit is contained in:
parent
f44ca529d7
commit
b762832214
2 changed files with 6 additions and 17 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-12-05 Andy Wingo <wingo@pobox.com>
|
||||
|
||||
* gst/switch/gstswitch.c (gst_switch_set_property): Don't push
|
||||
buffers from app thread when unsetting `queue-buffers', it's
|
||||
dangerous and the chain function will do it for us anyway.
|
||||
|
||||
2007-12-04 Edgard Lima <edgard.lima@indt.org.br>
|
||||
|
||||
* ext/metadata/metadatamuxjpeg.c: (metadatamux_wrap_chunk),
|
||||
|
|
|
@ -513,23 +513,6 @@ gst_switch_set_property (GObject * object, guint prop_id,
|
|||
case ARG_QUEUE_BUFFERS:
|
||||
GST_SWITCH_LOCK (gstswitch);
|
||||
gstswitch->queue_buffers = g_value_get_boolean (value);
|
||||
if (!gstswitch->queue_buffers && !gstswitch->need_to_send_newsegment) {
|
||||
GList *buffers;
|
||||
|
||||
/* send all the stored buffers if any */
|
||||
buffers =
|
||||
g_hash_table_lookup (gstswitch->stored_buffers,
|
||||
gstswitch->active_sinkpad);
|
||||
while (buffers != NULL) {
|
||||
gst_buffer_ref (GST_BUFFER (buffers->data));
|
||||
GST_SWITCH_UNLOCK (gstswitch);
|
||||
gst_pad_push (gstswitch->srcpad, GST_BUFFER (buffers->data));
|
||||
GST_SWITCH_LOCK (gstswitch);
|
||||
buffers = buffers->next;
|
||||
}
|
||||
g_hash_table_remove (gstswitch->stored_buffers,
|
||||
gstswitch->active_sinkpad);
|
||||
}
|
||||
GST_SWITCH_UNLOCK (gstswitch);
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue