summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hoyt <dhoyt@llnl.gov>2009-05-07 12:57:10 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-05-07 12:57:10 +0200
commitda8d4abad2d023888f560fb91b1d347e975ed38a (patch)
tree3500e29a8ea0f52e226bc0356382796499dbaa22
parentc5e9009f08004ba70f7a3f7157b78985bcdc774d (diff)
Use av_{i,o}format_next instead of the private next field
This fixes compilation with MSVC where the initializer variables are aliased to different names. Fixes bug #576126.
-rw-r--r--ext/ffmpeg/gstffmpegdemux.c4
-rw-r--r--ext/ffmpeg/gstffmpegmux.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/ffmpeg/gstffmpegdemux.c b/ext/ffmpeg/gstffmpegdemux.c
index 0fe5693..0aaf110 100644
--- a/ext/ffmpeg/gstffmpegdemux.c
+++ b/ext/ffmpeg/gstffmpegdemux.c
@@ -1786,7 +1786,7 @@ gst_ffmpegdemux_register (GstPlugin * plugin)
(GInstanceInitFunc) gst_ffmpegdemux_init,
};
- in_plugin = first_iformat;
+ in_plugin = av_iformat_next (NULL);
GST_LOG ("Registering demuxers");
@@ -1967,7 +1967,7 @@ gst_ffmpegdemux_register (GstPlugin * plugin)
next:
g_free (name);
- in_plugin = in_plugin->next;
+ in_plugin = av_iformat_next (in_plugin);
}
GST_LOG ("Finished registering demuxers");
diff --git a/ext/ffmpeg/gstffmpegmux.c b/ext/ffmpeg/gstffmpegmux.c
index 7164fe0..55369a8 100644
--- a/ext/ffmpeg/gstffmpegmux.c
+++ b/ext/ffmpeg/gstffmpegmux.c
@@ -769,7 +769,7 @@ gst_ffmpegmux_register (GstPlugin * plugin)
AVOutputFormat *in_plugin;
GstFFMpegMuxClassParams *params;
- in_plugin = first_oformat;
+ in_plugin = av_oformat_next (NULL);
GST_LOG ("Registering muxers");
@@ -880,7 +880,7 @@ gst_ffmpegmux_register (GstPlugin * plugin)
g_free (type_name);
next:
- in_plugin = in_plugin->next;
+ in_plugin = av_oformat_next (in_plugin);
}
GST_LOG ("Finished registering muxers");