summaryrefslogtreecommitdiffstats
path: root/audio/gsta2dpsink.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/gsta2dpsink.c')
-rw-r--r--audio/gsta2dpsink.c13
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);