From 3f9931de2467a2a7d84341eb74ec58bc863da4a7 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Mon, 14 Jun 2004 01:26:15 +0000 Subject: [PATCH] God, this is pathetic... Can someone reenable -Wall/-Werror? Original commit message from CVS: God, this is pathetic... Can someone reenable -Wall/-Werror? --- ext/ffmpeg/gstffmpegcodecmap.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ext/ffmpeg/gstffmpegcodecmap.c b/ext/ffmpeg/gstffmpegcodecmap.c index e3f6684..018ced6 100644 --- a/ext/ffmpeg/gstffmpegcodecmap.c +++ b/ext/ffmpeg/gstffmpegcodecmap.c @@ -603,6 +603,10 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id, * in this caps definition. */ caps = GST_FF_AUD_CAPS_NEW ("audio/x-adpcm", "layout", G_TYPE_STRING, layout, NULL); + if (context) + gst_caps_set_simple (caps, + "block_align", G_TYPE_INT, context->block_align, + "bitrate", G_TYPE_INT, context->bit_rate, NULL); } while (0); break; @@ -649,6 +653,10 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id, * in this caps definition. */ caps = GST_FF_AUD_CAPS_NEW ("audio/x-dpcm", "layout", G_TYPE_STRING, layout, NULL); + if (context) + gst_caps_set_simple (caps, + "block_align", G_TYPE_INT, context->block_align, + "bitrate", G_TYPE_INT, context->bit_rate, NULL); } while (0); break; @@ -682,8 +690,9 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id, mime = g_strdup_printf ("audio/x-gst_ff-%s", codec->name); caps = GST_FF_AUD_CAPS_NEW (mime, NULL); if (context) - gst_caps_set (caps, "block_align", context->block_align, - "bitrate", context->bit_rate, NULL); + gst_caps_set_simple (caps, + "block_align", G_TYPE_INT, context->block_align, + "bitrate", G_TYPE_INT, context->bit_rate, NULL); g_free (mime); break; default: -- 2.7.4