From c30aaaef6bd0ce15caec5c3e1462759d8b33b423 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Wed, 1 Dec 2004 15:18:35 +0000 Subject: 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). --- gst/law/alaw-decode.c | 1 + gst/law/mulaw-decode.c | 1 + 2 files changed, 2 insertions(+) (limited to 'gst/law') diff --git a/gst/law/alaw-decode.c b/gst/law/alaw-decode.c index 47c684f8..12c57135 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 46d02730..af957ec5 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); -- cgit