diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-02-01 19:28:37 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-02-01 19:28:37 +0000 |
commit | ae689c59cc62acc9f160afe6beb6ccc07b6c6f55 (patch) | |
tree | e086ade151baea0e5e9064c6cc72d0437bb6751d /audio/gsta2dpsink.c | |
parent | 9225eadeb28150fcb0b05ec0b31349ce812dd3d0 (diff) |
Add bitpool property and others fixes for gstreamer plugin.
Diffstat (limited to 'audio/gsta2dpsink.c')
-rw-r--r-- | audio/gsta2dpsink.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/audio/gsta2dpsink.c b/audio/gsta2dpsink.c index 6595d0b5..4ff30b84 100644 --- a/audio/gsta2dpsink.c +++ b/audio/gsta2dpsink.c @@ -109,12 +109,12 @@ static GstElement* gst_a2dp_sink_init_element(GstA2dpSink *self, element = gst_element_factory_make(elementname, name); if (element == NULL) { - GST_ERROR_OBJECT(self, "Couldn't create %s", elementname); + GST_DEBUG_OBJECT(self, "Couldn't create %s", elementname); return NULL; } if (!gst_bin_add(GST_BIN(self), element)) { - GST_ERROR_OBJECT(self, "failed to add %s to the bin", + GST_DEBUG_OBJECT(self, "failed to add %s to the bin", elementname); goto cleanup_and_fail; } @@ -122,14 +122,15 @@ static GstElement* gst_a2dp_sink_init_element(GstA2dpSink *self, state = gst_a2dp_sink_get_state(self); if (gst_element_set_state(element, state) == GST_STATE_CHANGE_FAILURE) { - GST_ERROR_OBJECT(self, "%s failed to go to playing", + GST_DEBUG_OBJECT(self, "%s failed to go to playing", elementname); goto remove_element_and_fail; } if (link_to != NULL) if (!gst_element_link(link_to, element)) { - GST_ERROR_OBJECT(self, "couldn't link %s", elementname); + GST_DEBUG_OBJECT(self, "couldn't link %s", + elementname); goto remove_element_and_fail; } @@ -293,10 +294,8 @@ static GstStateChangeReturn gst_a2dp_sink_change_state(GstElement *element, break; } - if (ret == GST_STATE_CHANGE_FAILURE) { - g_mutex_unlock(self->cb_mutex); + if (ret == GST_STATE_CHANGE_FAILURE) return ret; - } ret = GST_ELEMENT_CLASS(parent_class)->change_state(element, transition); |