switch (transition) {
case GST_STATE_CHANGE_NULL_TO_READY:
- ke->tags = gst_tag_list_new ();
+ ke->tags = gst_tag_list_new_empty ();
break;
case GST_STATE_CHANGE_READY_TO_PAUSED:
GST_DEBUG_OBJECT (ke, "READY -> PAUSED, initializing kate state");
}
}
if (decoder->k.ki->language && *decoder->k.ki->language) {
- GstTagList *old = decoder->tags, *tags = gst_tag_list_new ();
+ GstTagList *old = decoder->tags, *tags = gst_tag_list_new_empty ();
if (tags) {
gchar *lang_code;
if (!decoder->tags) {
GST_ERROR_OBJECT (element, "failed to decode comment header");
- decoder->tags = gst_tag_list_new ();
+ decoder->tags = gst_tag_list_new_empty ();
}
if (encoder) {
gst_tag_list_add (decoder->tags, GST_TAG_MERGE_REPLACE,
else if (*ev && (*ev)->meta) {
int count = kate_meta_query_count ((*ev)->meta);
if (count > 0) {
- GstTagList *evtags = gst_tag_list_new ();
+ GstTagList *evtags = gst_tag_list_new_empty ();
int idx;
GST_DEBUG_OBJECT (decoder, "Kate event has %d attached metadata", count);
for (idx = 0; idx < count; ++idx) {
newcaps = gst_caps_from_string ("video/x-raw-bayer,"
"format=(string){bggr,grbg,gbrg,rggb}");
} else {
- newcaps = gst_caps_new_simple ("video/x-raw", NULL);
+ newcaps = gst_caps_new_empty_simple ("video/x-raw");
}
newstruct = gst_caps_get_structure (newcaps, 0);
program = mpegts_base_get_program (base, program_number);
if (program && !program->tags) {
- program->tags = gst_tag_list_new_full (GST_TAG_ARTIST,
+ program->tags = gst_tag_list_new (GST_TAG_ARTIST,
gst_structure_get_string (service, "name"), NULL);
}
}
gst_structure_get_uint (event, "duration", &duration);
program->event_id = event_id;
- program->tags = gst_tag_list_new_full (GST_TAG_TITLE,
+ program->tags = gst_tag_list_new (GST_TAG_TITLE,
title, GST_TAG_DURATION, duration * GST_SECOND, NULL);
}
}