/* Sipro/ACELP.NET Voice Codec (MIME unknown) */
case GST_RM_AUD_SIPR:
- caps = gst_caps_new_simple ("audio/x-sipro", NULL);
+ caps = gst_caps_new_empty_simple ("audio/x-sipro");
break;
default:
if (codec_name) {
if (demux->pending_tags == NULL)
- demux->pending_tags = gst_tag_list_new ();
+ demux->pending_tags = gst_tag_list_new_empty ();
gst_tag_list_add (demux->pending_tags, GST_TAG_MERGE_REPLACE,
GST_TAG_AUDIO_CODEC, codec_name, NULL);
}
if (demux->pending_tags) {
- gst_element_found_tags_for_pad (GST_ELEMENT (demux), demux->srcpad,
- demux->pending_tags);
+ gst_pad_push_event (demux->srcpad,
+ gst_event_new_tag (demux->pending_tags));
demux->pending_tags = NULL;
}
/* Sony ATRAC3 */
case GST_RM_AUD_ATRC:
- stream_caps = gst_caps_new_simple ("audio/x-vnd.sony.atrac3", NULL);
+ stream_caps = gst_caps_new_empty_simple ("audio/x-vnd.sony.atrac3");
stream->needs_descrambling = TRUE;
stream->subpackets_needed = stream->height;
stream->subpackets = NULL;
/* RALF is lossless */
case GST_RM_AUD_RALF:
GST_DEBUG_OBJECT (rmdemux, "RALF");
- stream_caps = gst_caps_new_simple ("audio/x-ralf-mpeg4-generic", NULL);
+ stream_caps = gst_caps_new_empty_simple ("audio/x-ralf-mpeg4-generic");
break;
case GST_RM_AUD_SIPR:
}
GST_DEBUG_OBJECT (rmdemux, "SIPR");
- stream_caps = gst_caps_new_simple ("audio/x-sipro", NULL);
+ stream_caps = gst_caps_new_empty_simple ("audio/x-sipro");
stream->needs_descrambling = TRUE;
stream->subpackets_needed = stream->height;
stream->subpackets = NULL;
/* save for later, we must send the tags after the newsegment event */
if (codec_tag != NULL && codec_name != NULL) {
if (stream->pending_tags == NULL)
- stream->pending_tags = gst_tag_list_new ();
+ stream->pending_tags = gst_tag_list_new_empty ();
gst_tag_list_add (stream->pending_tags, GST_TAG_MERGE_KEEP,
codec_tag, codec_name, NULL);
g_free (codec_name);
GST_LOG_OBJECT (rmdemux, "Stream avg bitrate=%u", avg_bitrate);
if (max_bitrate != 0) {
if (stream->pending_tags == NULL)
- stream->pending_tags = gst_tag_list_new ();
+ stream->pending_tags = gst_tag_list_new_empty ();
gst_tag_list_add (stream->pending_tags, GST_TAG_MERGE_REPLACE,
GST_TAG_MAXIMUM_BITRATE, max_bitrate, NULL);
}
if (avg_bitrate != 0) {
if (stream->pending_tags == NULL)
- stream->pending_tags = gst_tag_list_new ();
+ stream->pending_tags = gst_tag_list_new_empty ();
gst_tag_list_add (stream->pending_tags, GST_TAG_MERGE_REPLACE,
GST_TAG_BITRATE, avg_bitrate, NULL);
}
rmdemux->need_newsegment = FALSE;
if (rmdemux->pending_tags != NULL) {
- gst_element_found_tags (GST_ELEMENT (rmdemux), rmdemux->pending_tags);
+ gst_rmdemux_send_event (rmdemux,
+ gst_event_new_tag (rmdemux->pending_tags));
rmdemux->pending_tags = NULL;
}
}
if (stream->pending_tags != NULL) {
GST_LOG_OBJECT (stream->pad, "tags %" GST_PTR_FORMAT, stream->pending_tags);
- gst_element_found_tags_for_pad (GST_ELEMENT_CAST (rmdemux), stream->pad,
- stream->pending_tags);
+ gst_pad_push_event (stream->pad, gst_event_new_tag (stream->pending_tags));
stream->pending_tags = NULL;
}