summaryrefslogtreecommitdiff
path: root/ext/libav/gstavmux.c
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2018-06-29 21:38:50 +0200
committerMathieu Duponchelle <mathieu@centricular.com>2018-07-13 00:53:27 +0200
commit2ec542f7c2a1e45ad8e22c4a77af2fd4d2cb5bdb (patch)
treea5f73529efe2f0f8731d4d5aa7fa955e9b1d3543 /ext/libav/gstavmux.c
parentbc7160dd47b2417a588e9b58d688f66146cc1c0a (diff)
downloadgst-libav-2ec542f7c2a1e45ad8e22c4a77af2fd4d2cb5bdb.tar.gz
av_oformat_next (deprecated) -> av_muxer_iterate
https://bugzilla.gnome.org/show_bug.cgi?id=792900
Diffstat (limited to 'ext/libav/gstavmux.c')
-rw-r--r--ext/libav/gstavmux.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/ext/libav/gstavmux.c b/ext/libav/gstavmux.c
index c2ac7ec..32ebb4d 100644
--- a/ext/libav/gstavmux.c
+++ b/ext/libav/gstavmux.c
@@ -876,13 +876,12 @@ gst_ffmpegmux_register (GstPlugin * plugin)
NULL, NULL, NULL
};
GType type;
- AVOutputFormat *in_plugin;
-
- in_plugin = av_oformat_next (NULL);
+ const AVOutputFormat *in_plugin;
+ void *i = 0;
GST_LOG ("Registering muxers");
- while (in_plugin) {
+ while ((in_plugin = av_muxer_iterate (&i))) {
gchar *type_name;
GstRank rank = GST_RANK_MARGINAL;
@@ -921,12 +920,12 @@ gst_ffmpegmux_register (GstPlugin * plugin)
!strncmp (in_plugin->name, "webm", 4)
) {
GST_LOG ("Ignoring muxer %s", in_plugin->name);
- goto next;
+ continue;
}
if ((!strncmp (in_plugin->long_name, "raw ", 4))) {
GST_LOG ("Ignoring raw muxer %s", in_plugin->name);
- goto next;
+ continue;
}
if (gst_ffmpegmux_get_replacement (in_plugin->name))
@@ -954,9 +953,6 @@ gst_ffmpegmux_register (GstPlugin * plugin)
}
g_free (type_name);
-
- next:
- in_plugin = av_oformat_next (in_plugin);
}
GST_LOG ("Finished registering muxers");