mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
kate, bayer, tsdemux: update for caps and taglist API changes
This commit is contained in:
parent
dcb8896b8b
commit
c186b74296
4 changed files with 7 additions and 7 deletions
|
@ -1025,7 +1025,7 @@ gst_kate_enc_change_state (GstElement * element, GstStateChange transition)
|
|||
|
||||
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");
|
||||
|
|
|
@ -308,7 +308,7 @@ gst_kate_util_decoder_base_chain_kate_packet (GstKateDecoderBase * decoder,
|
|||
}
|
||||
}
|
||||
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;
|
||||
|
||||
|
@ -357,7 +357,7 @@ gst_kate_util_decoder_base_chain_kate_packet (GstKateDecoderBase * decoder,
|
|||
|
||||
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,
|
||||
|
@ -394,7 +394,7 @@ gst_kate_util_decoder_base_chain_kate_packet (GstKateDecoderBase * decoder,
|
|||
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) {
|
||||
|
|
|
@ -294,7 +294,7 @@ gst_bayer2rgb_transform_caps (GstBaseTransform * base,
|
|||
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);
|
||||
|
||||
|
|
|
@ -1098,7 +1098,7 @@ mpegts_base_get_tags_from_sdt (MpegTSBase * base, GstStructure * sdt_info)
|
|||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
@ -1139,7 +1139,7 @@ mpegts_base_get_tags_from_eit (MpegTSBase * base, GstStructure * eit_info)
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue