mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
ext/ffmpeg/gstffmpegdec.c: Don't set rank of sp5x video decoder to NONE.
Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_register): Don't set rank of sp5x video decoder to NONE. Fixes #466221 Re-order the cases of the switch statement so that the default case is last.
This commit is contained in:
parent
144b42608b
commit
f616f4aa7c
2 changed files with 12 additions and 5 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2007-08-14 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
|
* ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_register):
|
||||||
|
Don't set rank of sp5x video decoder to NONE.
|
||||||
|
Fixes #466221
|
||||||
|
Re-order the cases of the switch statement so that the default case
|
||||||
|
is last.
|
||||||
|
|
||||||
2007-08-07 Wim Taymans <wim.taymans@gmail.com>
|
2007-08-07 Wim Taymans <wim.taymans@gmail.com>
|
||||||
|
|
||||||
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_caps_with_codecid):
|
* ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_caps_with_codecid):
|
||||||
|
|
|
@ -2294,6 +2294,7 @@ gst_ffmpegdec_register (GstPlugin * plugin)
|
||||||
case CODEC_ID_MPEG4:
|
case CODEC_ID_MPEG4:
|
||||||
case CODEC_ID_MSMPEG4V3:
|
case CODEC_ID_MSMPEG4V3:
|
||||||
case CODEC_ID_H264:
|
case CODEC_ID_H264:
|
||||||
|
case CODEC_ID_COOK:
|
||||||
rank = GST_RANK_PRIMARY;
|
rank = GST_RANK_PRIMARY;
|
||||||
break;
|
break;
|
||||||
case CODEC_ID_DVVIDEO:
|
case CODEC_ID_DVVIDEO:
|
||||||
|
@ -2302,11 +2303,6 @@ gst_ffmpegdec_register (GstPlugin * plugin)
|
||||||
note: if you change this, see the code in gstdv.c in good/ext/dv. */
|
note: if you change this, see the code in gstdv.c in good/ext/dv. */
|
||||||
rank = GST_RANK_SECONDARY;
|
rank = GST_RANK_SECONDARY;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
rank = GST_RANK_MARGINAL;
|
|
||||||
break;
|
|
||||||
/* what's that? */
|
|
||||||
case CODEC_ID_SP5X:
|
|
||||||
/* MP3 and MPEG2 have better alternatives and
|
/* MP3 and MPEG2 have better alternatives and
|
||||||
the ffmpeg versions don't work properly feel
|
the ffmpeg versions don't work properly feel
|
||||||
free to assign rank if you fix them */
|
free to assign rank if you fix them */
|
||||||
|
@ -2314,6 +2310,9 @@ gst_ffmpegdec_register (GstPlugin * plugin)
|
||||||
case CODEC_ID_MPEG2VIDEO:
|
case CODEC_ID_MPEG2VIDEO:
|
||||||
rank = GST_RANK_NONE;
|
rank = GST_RANK_NONE;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
rank = GST_RANK_MARGINAL;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if (!gst_element_register (plugin, type_name, rank, type)) {
|
if (!gst_element_register (plugin, type_name, rank, type)) {
|
||||||
g_warning ("Failed to register %s", type_name);
|
g_warning ("Failed to register %s", type_name);
|
||||||
|
|
Loading…
Reference in a new issue