examples/switch/switcher.c (my_bus_callback, switch_timer, last_message_received...
authorZaheer Abbas Merali <zaheerabbas@merali.org>
Fri, 22 Jun 2007 15:30:00 +0000 (15:30 +0000)
committerZaheer Abbas Merali <zaheerabbas@merali.org>
Fri, 22 Jun 2007 15:30:00 +0000 (15:30 +0000)
commitd6627ae8e08ddf3a645d0c961970edcfc4a2a3cd
treebc432985eb40b92ede7f05dfc5f9c0c5a8e2fa14
parent8eb58da4b47dff93075738afccd452ecbdf9342f
examples/switch/switcher.c (my_bus_callback, switch_timer, last_message_received, main): gst/switch/gstswitch.c (gst_...

Original commit message from CVS:
* examples/switch/switcher.c (my_bus_callback, switch_timer,
last_message_received, main):
* gst/switch/gstswitch.c (gst_switch_release_pad,
gst_switch_request_new_pad, gst_switch_chain, gst_switch_event,
gst_switch_set_property, gst_switch_get_property,
gst_switch_get_linked_pad, gst_switch_getcaps,
gst_switch_bufferalloc, gst_switch_dispose, gst_switch_init):
* gst/switch/gstswitch.h (switch_mutex, GST_SWITCH_LOCK,
GST_SWITCH_UNLOCK):
Add an extra lock to protect against certain variables instead of
using the object lock. Fix case where caps are different in the
sink pads causes deadlock. Update example to use different caps
on each sink pad.
ChangeLog
examples/switch/switcher.c
gst/switch/gstswitch.c
gst/switch/gstswitch.h