/* release element which are not added to bin */
for (i = 1; i < WFD_SINK_M_NUM; i++) { /* NOTE : skip pipeline */
- if (mainbin != NULL && mainbin[i].gst) {
+ if (mainbin[i].gst) {
GstObject *parent = NULL;
parent = gst_element_get_parent(mainbin[i].gst);
}
/* release mainbin with it's childs */
- if (mainbin != NULL && mainbin[WFD_SINK_M_PIPE].gst) {
+ if (mainbin[WFD_SINK_M_PIPE].gst) {
gst_object_unref(GST_OBJECT(mainbin[WFD_SINK_M_PIPE].gst));
mainbin[WFD_SINK_M_PIPE].gst = NULL;
}
/* release element which are not added to bin */
for (i = 1; i < WFD_SINK_A_D_NUM; i++) { /* NOTE : skip bin */
- if (a_decodebin != NULL && a_decodebin[i].gst) {
+ if (a_decodebin[i].gst) {
GstObject *parent = NULL;
parent = gst_element_get_parent(a_decodebin[i].gst);
}
/* release audio decodebin with it's childs */
- if (a_decodebin != NULL && a_decodebin[WFD_SINK_A_D_BIN].gst) {
+ if (a_decodebin[WFD_SINK_A_D_BIN].gst) {
gst_object_unref(GST_OBJECT(a_decodebin[WFD_SINK_A_D_BIN].gst));
a_decodebin[WFD_SINK_A_D_BIN].gst = NULL;
}
/* release element which are not added to bin */
for (i = 1; i < WFD_SINK_A_S_NUM; i++) { /* NOTE : skip bin */
- if (a_sinkbin != NULL && a_sinkbin[i].gst) {
+ if (a_sinkbin[i].gst) {
GstObject *parent = NULL;
parent = gst_element_get_parent(a_sinkbin[i].gst);
}
/* release audio sinkbin with it's childs */
- if (a_sinkbin != NULL && a_sinkbin[WFD_SINK_A_S_BIN].gst) {
+ if (a_sinkbin[WFD_SINK_A_S_BIN].gst) {
gst_object_unref(GST_OBJECT(a_sinkbin[WFD_SINK_A_S_BIN].gst));
a_sinkbin[WFD_SINK_A_S_BIN].gst = NULL;
}
/* release element which are not added to bin */
for (i = 1; i < WFD_SINK_V_D_NUM; i++) { /* NOTE : skip bin */
- if (v_decodebin != NULL && v_decodebin[i].gst) {
+ if (v_decodebin[i].gst) {
GstObject *parent = NULL;
parent = gst_element_get_parent(v_decodebin[i].gst);
}
/* release video decodebin with it's childs */
- if (v_decodebin != NULL && v_decodebin[WFD_SINK_V_D_BIN].gst) {
+ if (v_decodebin[WFD_SINK_V_D_BIN].gst) {
gst_object_unref(GST_OBJECT(v_decodebin[WFD_SINK_V_D_BIN].gst));
v_decodebin[WFD_SINK_V_D_BIN].gst = NULL;
}
/* release element which are not added to bin */
for (i = 1; i < WFD_SINK_V_S_NUM; i++) { /* NOTE : skip bin */
- if (v_sinkbin != NULL && v_sinkbin[i].gst) {
+ if (v_sinkbin[i].gst) {
GstObject *parent = NULL;
parent = gst_element_get_parent(v_sinkbin[i].gst);
}
/* release video sinkbin with it's childs */
- if (v_sinkbin != NULL && v_sinkbin[WFD_SINK_V_S_BIN].gst) {
+ if (v_sinkbin[WFD_SINK_V_S_BIN].gst) {
gst_object_unref(GST_OBJECT(v_sinkbin[WFD_SINK_V_S_BIN].gst));
v_sinkbin[WFD_SINK_V_S_BIN].gst = NULL;
}