and small improvement in naming of the FFMPEG encoders. This makes their naming look slightly better in apps using el...

Original commit message from CVS:
Typo (> instead of <) in codec selection (we don't want raw audio to raw audio encoders), and small improvement in naming of the FFMPEG encoders. This makes their naming look slightly better in apps using element_factory->details->longname.
This commit is contained in:
Ronald S. Bultje 2003-10-20 08:24:39 +00:00
parent feed1dcd9c
commit 601a18b167

View file

@ -520,7 +520,7 @@ gst_ffmpegenc_register (GstPlugin *plugin)
/* no quasi codecs, please */ /* no quasi codecs, please */
if (in_plugin->id == CODEC_ID_RAWVIDEO || if (in_plugin->id == CODEC_ID_RAWVIDEO ||
(in_plugin->id >= CODEC_ID_PCM_S16LE && (in_plugin->id >= CODEC_ID_PCM_S16LE &&
in_plugin->id >= CODEC_ID_PCM_ALAW)) { in_plugin->id <= CODEC_ID_PCM_ALAW)) {
goto next; goto next;
} }
@ -550,7 +550,8 @@ gst_ffmpegenc_register (GstPlugin *plugin)
/* construct the element details struct */ /* construct the element details struct */
details = g_new0 (GstElementDetails,1); details = g_new0 (GstElementDetails,1);
details->longname = g_strdup(in_plugin->name); details->longname = g_strdup_printf("FFMPEG %s encoder",
in_plugin->name);
details->klass = g_strdup_printf("Codec/%s/Encoder", details->klass = g_strdup_printf("Codec/%s/Encoder",
(in_plugin->type == CODEC_TYPE_VIDEO) ? (in_plugin->type == CODEC_TYPE_VIDEO) ?
"Video" : "Audio"); "Video" : "Audio");