From c30aaaef6bd0ce15caec5c3e1462759d8b33b423 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Wed, 1 Dec 2004 15:18:35 +0000 Subject: [PATCH] gst/law/: Prevent warnings when negotiating caps (fixes #159338). Original commit message from CVS: Reviewed by: Ronald S. Bultje * gst/law/alaw-decode.c: (alawdec_getcaps): * gst/law/mulaw-decode.c: (mulawdec_getcaps): Prevent warnings when negotiating caps (fixes #159338). --- ChangeLog | 8 ++++++++ gst/law/alaw-decode.c | 1 + gst/law/mulaw-decode.c | 1 + 3 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index df22a5b..0e3081b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2004-12-01 Sebastien Cote + + Reviewed by: Ronald S. Bultje + + * gst/law/alaw-decode.c: (alawdec_getcaps): + * gst/law/mulaw-decode.c: (mulawdec_getcaps): + Prevent warnings when negotiating caps (fixes #159338). + 2004-12-01 Ronald S. Bultje * gst/ffmpegcolorspace/gstffmpegcolorspace.c: diff --git a/gst/law/alaw-decode.c b/gst/law/alaw-decode.c index 47c684f..12c5713 100644 --- a/gst/law/alaw-decode.c +++ b/gst/law/alaw-decode.c @@ -87,6 +87,7 @@ alawdec_getcaps (GstPad * pad) otherpad = alawdec->sinkpad; base_caps = gst_caps_new_simple ("audio/x-raw-int", "width", G_TYPE_INT, 16, "depth", G_TYPE_INT, 16, + "signed", G_TYPE_BOOLEAN, TRUE, "endianness", G_TYPE_INT, G_BYTE_ORDER, NULL); } othercaps = gst_pad_get_allowed_caps (otherpad); diff --git a/gst/law/mulaw-decode.c b/gst/law/mulaw-decode.c index 46d0273..af957ec 100644 --- a/gst/law/mulaw-decode.c +++ b/gst/law/mulaw-decode.c @@ -64,6 +64,7 @@ mulawdec_getcaps (GstPad * pad) otherpad = mulawdec->sinkpad; base_caps = gst_caps_new_simple ("audio/x-raw-int", "width", G_TYPE_INT, 16, "depth", G_TYPE_INT, 16, + "signed", G_TYPE_BOOLEAN, TRUE, "endianness", G_TYPE_INT, G_BYTE_ORDER, NULL); } othercaps = gst_pad_get_allowed_caps (otherpad); -- 2.7.4