gst_message_parse_stream_collection() and
gst_message_parse_streams_selected() actually return a reffed
GstStreamCollection.
https://bugzilla.gnome.org/show_bug.cgi?id=768776
gst_message_unref (message);
message = new_msg;
}
+ if (collection)
+ gst_object_unref (collection);
break;
}
default:
GST_PLAY_BIN3_UNLOCK (playbin);
notify_all_streams (playbin, collection);
+ gst_object_unref (collection);
}
} else if (GST_MESSAGE_TYPE (msg) == GST_MESSAGE_STREAMS_SELECTED) {
GstStreamCollection *collection = NULL;
GST_PLAY_BIN3_UNLOCK (playbin);
notify_all_streams (playbin, collection);
+ gst_object_unref (collection);
}
}
/* In 5s try to change streams */
data->timeout_id =
g_timeout_add_seconds (5, (GSourceFunc) switch_streams, data);
+ gst_object_unref (collection);
}
break;
}
/* In 5s try to change streams */
data->timeout_id =
g_timeout_add_seconds (5, (GSourceFunc) switch_streams, data);
+ gst_object_unref (collection);
}
break;
}