bluez: Add bitpool property and others fixes for gstreamer plugin.
This commit is contained in:
parent
ff3034af81
commit
42f9db0214
@ -109,24 +109,24 @@ gst_a2dp_sink_init_element (GstA2dpSink * self,
|
|||||||
|
|
||||||
element = gst_element_factory_make (elementname, name);
|
element = gst_element_factory_make (elementname, name);
|
||||||
if (element == NULL) {
|
if (element == NULL) {
|
||||||
GST_ERROR_OBJECT (self, "Couldn't create %s", elementname);
|
GST_DEBUG_OBJECT (self, "Couldn't create %s", elementname);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gst_bin_add (GST_BIN (self), element)) {
|
if (!gst_bin_add (GST_BIN (self), element)) {
|
||||||
GST_ERROR_OBJECT (self, "failed to add %s to the bin", elementname);
|
GST_DEBUG_OBJECT (self, "failed to add %s to the bin", elementname);
|
||||||
goto cleanup_and_fail;
|
goto cleanup_and_fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
state = gst_a2dp_sink_get_state (self);
|
state = gst_a2dp_sink_get_state (self);
|
||||||
if (gst_element_set_state (element, state) == GST_STATE_CHANGE_FAILURE) {
|
if (gst_element_set_state (element, state) == GST_STATE_CHANGE_FAILURE) {
|
||||||
GST_ERROR_OBJECT (self, "%s failed to go to playing", elementname);
|
GST_DEBUG_OBJECT (self, "%s failed to go to playing", elementname);
|
||||||
goto remove_element_and_fail;
|
goto remove_element_and_fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (link_to != NULL)
|
if (link_to != NULL)
|
||||||
if (!gst_element_link (link_to, element)) {
|
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;
|
goto remove_element_and_fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -289,10 +289,8 @@ gst_a2dp_sink_change_state (GstElement * element, GstStateChange transition)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret == GST_STATE_CHANGE_FAILURE) {
|
if (ret == GST_STATE_CHANGE_FAILURE)
|
||||||
g_mutex_unlock (self->cb_mutex);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
|
||||||
|
|
||||||
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user