}
if (gst_pad_is_linked(srcpad)) {
- wfd_sink_debug("%s is already linked",
+ wfd_sink_debug("%s:%s is already linked",
GST_ELEMENT_NAME(GST_PAD_PARENT(srcpad)), GST_PAD_NAME(srcpad));
goto done;
}
goto ERROR;
}
- wfd_sink_debug("try to unlink %s:%s and %s:%s",
+ wfd_sink_error("try to unlink %s:%s and %s:%s",
GST_ELEMENT_NAME(GST_PAD_PARENT(srcpad)), GST_PAD_NAME(srcpad),
GST_ELEMENT_NAME(GST_PAD_PARENT(sinkpad)), GST_PAD_NAME(sinkpad));
if (!gst_pad_unlink(srcpad, sinkpad)) {
gst_object_unref(sinkpad);
sinkpad = NULL;
+ wfd_sink_error("try to remove %s from %s",
+ GST_ELEMENT_NAME(v_sinkbin), GST_ELEMENT_NAME(pipeline));
+
gst_object_ref(v_sinkbin);
if (!gst_bin_remove(GST_BIN(pipeline), GST_ELEMENT(v_sinkbin))) {
wfd_sink_error("failed to remove %s from %s",
goto ERROR;
}
- wfd_sink_debug("try to unlink %s:%s and %s:%s",
+ wfd_sink_error("try to unlink %s:%s and %s:%s",
GST_ELEMENT_NAME(GST_PAD_PARENT(srcpad)), GST_PAD_NAME(srcpad),
GST_ELEMENT_NAME(GST_PAD_PARENT(sinkpad)), GST_PAD_NAME(sinkpad));
if (!gst_pad_unlink(srcpad, sinkpad)) {
goto ERROR;
}
- wfd_sink_debug("try to unlink %s:%s and %s:%s",
+ wfd_sink_error("try to unlink %s:%s and %s:%s",
GST_ELEMENT_NAME(GST_PAD_PARENT(srcpad)), GST_PAD_NAME(srcpad),
GST_ELEMENT_NAME(GST_PAD_PARENT(sinkpad)), GST_PAD_NAME(sinkpad));
if (!gst_pad_unlink(srcpad, sinkpad)) {
goto ERROR;
}
- wfd_sink_debug("try to unlink %s:%s and %s:%s",
+ wfd_sink_error("try to unlink %s:%s and %s:%s",
GST_ELEMENT_NAME(GST_PAD_PARENT(srcpad)), GST_PAD_NAME(srcpad),
GST_ELEMENT_NAME(GST_PAD_PARENT(sinkpad)), GST_PAD_NAME(sinkpad));
if (!gst_pad_unlink(srcpad, sinkpad)) {
gst_object_unref(sinkpad);
sinkpad = NULL;
+ wfd_sink_error("try to remove %s from %s", GST_ELEMENT_NAME(a_sinkbin), GST_ELEMENT_NAME(pipeline));
+
gst_object_ref(a_sinkbin);
if (!gst_bin_remove(GST_BIN(pipeline), GST_ELEMENT(a_sinkbin))) {
wfd_sink_error("failed to remove %s from %s",
goto ERROR;
}
- wfd_sink_debug("try to unlink %s:%s and %s:%s",
+ wfd_sink_error("try to unlink %s:%s and %s:%s",
GST_ELEMENT_NAME(GST_PAD_PARENT(srcpad)), GST_PAD_NAME(srcpad),
GST_ELEMENT_NAME(GST_PAD_PARENT(sinkpad)), GST_PAD_NAME(sinkpad));
if (!gst_pad_unlink(srcpad, sinkpad)) {
return MM_ERROR_WFD_INTERNAL;
}
- wfd_sink_debug("try to unlink %s:%s and %s:%s",
+ wfd_sink_error("try to unlink %s:%s and %s:%s",
GST_ELEMENT_NAME(GST_PAD_PARENT(srcpad)), GST_PAD_NAME(srcpad),
GST_ELEMENT_NAME(GST_PAD_PARENT(sinkpad)), GST_PAD_NAME(sinkpad));
if (!gst_pad_unlink(srcpad, sinkpad)) {
GstObject *parent = NULL;
int i;
- wfd_sink_debug_fenter();
+ wfd_sink_error_fenter();
wfd_sink_return_val_if_fail(wfd_sink, MM_ERROR_WFD_NOT_INITIALIZED);
wfd_sink_debug("audio decodebin has no parent.. need to relase by itself");
if (GST_STATE(a_decodebin[WFD_SINK_A_D_BIN].gst) >= GST_STATE_READY) {
- wfd_sink_debug("try to change state of audio decodebin to NULL");
+ wfd_sink_error("try to change state of audio decodebin to NULL");
ret = gst_element_set_state(a_decodebin[WFD_SINK_A_D_BIN].gst, GST_STATE_NULL);
if (ret != GST_STATE_CHANGE_SUCCESS) {
wfd_sink_error("failed to change state of audio decodebin to NULL");
MMWFDSINK_FREEIF(wfd_sink->pipeline->a_decodebin);
- wfd_sink_debug_fleave();
+ wfd_sink_error_fleave();
return MM_ERROR_NONE;
}
GstObject *parent = NULL;
int i;
- wfd_sink_debug_fenter();
+ wfd_sink_error_fenter();
wfd_sink_return_val_if_fail(wfd_sink, MM_ERROR_WFD_NOT_INITIALIZED);
parent = gst_element_get_parent(a_sinkbin[WFD_SINK_A_S_BIN].gst);
if (!parent) {
- wfd_sink_debug("audio sinkbin has no parent.. need to relase by itself");
+ wfd_sink_error("audio sinkbin has no parent.. need to relase by itself");
if (GST_STATE(a_sinkbin[WFD_SINK_A_S_BIN].gst) >= GST_STATE_READY) {
- wfd_sink_debug("try to change state of audio sinkbin to NULL");
+ wfd_sink_error("try to change state of audio sinkbin to NULL");
ret = gst_element_set_state(a_sinkbin[WFD_SINK_A_S_BIN].gst, GST_STATE_NULL);
if (ret != GST_STATE_CHANGE_SUCCESS) {
wfd_sink_error("failed to change state of audio sinkbin to NULL");
MMWFDSINK_FREEIF(wfd_sink->pipeline->a_sinkbin);
- wfd_sink_debug_fleave();
+ wfd_sink_error_fleave();
return MM_ERROR_NONE;
}
GstObject *parent = NULL;
int i;
- wfd_sink_debug_fenter();
+ wfd_sink_error_fenter();
wfd_sink_return_val_if_fail(wfd_sink, MM_ERROR_WFD_NOT_INITIALIZED);
wfd_sink_debug("video decodebin has no parent.. need to relase by itself");
if (GST_STATE(v_decodebin[WFD_SINK_V_D_BIN].gst) >= GST_STATE_READY) {
- wfd_sink_debug("try to change state of video decodebin to NULL");
+ wfd_sink_error("try to change state of video decodebin to NULL");
ret = gst_element_set_state(v_decodebin[WFD_SINK_V_D_BIN].gst, GST_STATE_NULL);
if (ret != GST_STATE_CHANGE_SUCCESS) {
wfd_sink_error("failed to change state of video decodebin to NULL");
MMWFDSINK_FREEIF(wfd_sink->pipeline->v_decodebin);
- wfd_sink_debug_fleave();
+ wfd_sink_error_fleave();
return MM_ERROR_NONE;
}
GstObject *parent = NULL;
int i;
- wfd_sink_debug_fenter();
+ wfd_sink_error_fenter();
wfd_sink_return_val_if_fail(wfd_sink, MM_ERROR_WFD_NOT_INITIALIZED);
wfd_sink_debug("video sinkbin has no parent.. need to relase by itself");
if (GST_STATE(v_sinkbin[WFD_SINK_V_S_BIN].gst) >= GST_STATE_READY) {
- wfd_sink_debug("try to change state of video sinkbin to NULL");
+ wfd_sink_error("try to change state of video sinkbin to NULL");
ret = gst_element_set_state(v_sinkbin[WFD_SINK_V_S_BIN].gst, GST_STATE_NULL);
if (ret != GST_STATE_CHANGE_SUCCESS) {
wfd_sink_error("failed to change state of video sinkbin to NULL");
MMWFDSINK_FREEIF(wfd_sink->pipeline->v_sinkbin);
- wfd_sink_debug_fleave();
+ wfd_sink_error_fleave();
return MM_ERROR_NONE;
}
ret = gst_element_set_state(mainbin[WFD_SINK_M_PIPE].gst, GST_STATE_NULL);
if (ret != GST_STATE_CHANGE_SUCCESS) {
- wfd_sink_error("failed to change state of pipeline to NULL");
+ wfd_sink_error("failed to change state of pipeline to NULL. ret[%d]", ret);
return MM_ERROR_WFD_INTERNAL;
} else {
wfd_sink_debug("Successed to change state of pipeline to NULL");