Mercurial > pidgin.yaz
comparison libpurple/mediamanager.c @ 28227:d865064a3104
Switch around some GStreamer linking and state setting.
Hopefully this fixes the occasional freezing of the stream on startup.
author | maiku@pidgin.im |
---|---|
date | Wed, 12 Aug 2009 10:03:47 +0000 |
parents | 1c58b9d2429b |
children | f5580e1ca4b1 |
comparison
equal
deleted
inserted
replaced
28206:8ae062f94489 | 28227:d865064a3104 |
---|---|
749 manager->priv->pipeline)); | 749 manager->priv->pipeline)); |
750 g_signal_connect(bus, "sync-message::element", | 750 g_signal_connect(bus, "sync-message::element", |
751 G_CALLBACK(window_id_cb), ow); | 751 G_CALLBACK(window_id_cb), ow); |
752 gst_object_unref(bus); | 752 gst_object_unref(bus); |
753 | 753 |
754 gst_element_sync_state_with_parent(ow->sink); | 754 gst_element_set_state(ow->sink, GST_STATE_PLAYING); |
755 gst_element_set_state(queue, GST_STATE_PLAYING); | |
755 gst_element_link(queue, ow->sink); | 756 gst_element_link(queue, ow->sink); |
756 gst_element_sync_state_with_parent(queue); | |
757 gst_element_link(tee, queue); | 757 gst_element_link(tee, queue); |
758 } | 758 } |
759 } | 759 } |
760 return TRUE; | 760 return TRUE; |
761 #else | 761 #else |