mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
ffmpeg: Disable code using old metadata API
It is now gone and we need to switch to the new API See #566605
This commit is contained in:
parent
5aa722965c
commit
f16291a6cc
2 changed files with 26 additions and 0 deletions
|
@ -1065,6 +1065,10 @@ unknown_caps:
|
|||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* Re-enable once converted to new AVMetaData API
|
||||
* See #566605
|
||||
*/
|
||||
static gchar *
|
||||
my_safe_copy (gchar * input)
|
||||
{
|
||||
|
@ -1135,6 +1139,7 @@ gst_ffmpegdemux_read_tags (GstFFMpegDemux * demux)
|
|||
}
|
||||
return tlist;
|
||||
}
|
||||
#endif
|
||||
|
||||
static gboolean
|
||||
gst_ffmpegdemux_open (GstFFMpegDemux * demux)
|
||||
|
@ -1143,7 +1148,12 @@ gst_ffmpegdemux_open (GstFFMpegDemux * demux)
|
|||
(GstFFMpegDemuxClass *) G_OBJECT_GET_CLASS (demux);
|
||||
gchar *location;
|
||||
gint res, n_streams, i;
|
||||
#if 0
|
||||
/* Re-enable once converted to new AVMetaData API
|
||||
* See #566605
|
||||
*/
|
||||
GstTagList *tags;
|
||||
#endif
|
||||
GstEvent *event;
|
||||
GList *cached_events;
|
||||
|
||||
|
@ -1224,12 +1234,17 @@ gst_ffmpegdemux_open (GstFFMpegDemux * demux)
|
|||
cached_events = g_list_delete_link (cached_events, cached_events);
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* Re-enable once converted to new AVMetaData API
|
||||
* See #566605
|
||||
*/
|
||||
/* grab the global tags */
|
||||
tags = gst_ffmpegdemux_read_tags (demux);
|
||||
if (tags) {
|
||||
GST_INFO_OBJECT (demux, "global tags: %" GST_PTR_FORMAT, tags);
|
||||
gst_element_found_tags (GST_ELEMENT (demux), tags);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* now handle the stream tags */
|
||||
for (i = 0; i < n_streams; i++) {
|
||||
|
|
|
@ -543,7 +543,12 @@ gst_ffmpegmux_collected (GstCollectPads * pads, gpointer user_data)
|
|||
GSList *collected;
|
||||
GstFFMpegMuxPad *best_pad;
|
||||
GstClockTime best_time;
|
||||
#if 0
|
||||
/* Re-enable once converted to new AVMetaData API
|
||||
* See #566605
|
||||
*/
|
||||
const GstTagList *tags;
|
||||
#endif
|
||||
|
||||
/* open "file" (gstreamer protocol to next element) */
|
||||
if (!ffmpegmux->opened) {
|
||||
|
@ -594,6 +599,11 @@ gst_ffmpegmux_collected (GstCollectPads * pads, gpointer user_data)
|
|||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* Re-enable once converted to new AVMetaData API
|
||||
* See #566605
|
||||
*/
|
||||
|
||||
/* tags */
|
||||
tags = gst_tag_setter_get_tag_list (GST_TAG_SETTER (ffmpegmux));
|
||||
if (tags) {
|
||||
|
@ -629,6 +639,7 @@ gst_ffmpegmux_collected (GstCollectPads * pads, gpointer user_data)
|
|||
ffmpegmux->context->track = i;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* set the streamheader flag for gstffmpegprotocol if codec supports it */
|
||||
if (!strcmp (ffmpegmux->context->oformat->name, "flv")) {
|
||||
|
|
Loading…
Reference in a new issue