Change-Id: I4dfea6108bbd4c22964969d21bdea1a89c7321ce
Name: libmm-player
Summary: Multimedia Framework Player Library
Name: libmm-player
Summary: Multimedia Framework Player Library
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
ch_element = NULL;
g_value_reset(&item);
}
ch_element = NULL;
g_value_reset(&item);
}
gst_iterator_free(iter);
MMPLAYER_FLEAVE();
gst_iterator_free(iter);
MMPLAYER_FLEAVE();
player->videodec_linked = 1;
if (video_parse) {
player->videodec_linked = 1;
if (video_parse) {
- GstPad *srcpad = gst_element_get_static_pad (video_parse, "src");
+ GstPad *srcpad = gst_element_get_static_pad(video_parse, "src");
if (srcpad) {
GstCaps *caps = NULL;
GstStructure *str = NULL;
const gchar *name = NULL;
gboolean caps_ret = TRUE;
if (srcpad) {
GstCaps *caps = NULL;
GstStructure *str = NULL;
const gchar *name = NULL;
gboolean caps_ret = TRUE;
- MMPLAYER_GST_GET_CAPS_INFO_FROM_PAD (srcpad, caps, str, name, caps_ret);
+ MMPLAYER_GST_GET_CAPS_INFO_FROM_PAD(srcpad, caps, str, name, caps_ret);
- const gchar *stream_format = gst_structure_get_string (str, "stream-format");
+ const gchar *stream_format = gst_structure_get_string(str, "stream-format");
if (stream_format && g_strrstr(stream_format, "byte-stream")) {
if ((g_object_class_find_property(G_OBJECT_GET_CLASS(video_parse), "config-interval"))) {
g_object_set(G_OBJECT(video_parse), "config-interval", -1, NULL);
if (stream_format && g_strrstr(stream_format, "byte-stream")) {
if ((g_object_class_find_property(G_OBJECT_GET_CLASS(video_parse), "config-interval"))) {
g_object_set(G_OBJECT(video_parse), "config-interval", -1, NULL);
+ if (caps)
+ gst_caps_unref(caps);
gst_object_unref(GST_OBJECT(srcpad));
}
}
gst_object_unref(GST_OBJECT(srcpad));
}
}