gst/law/: Prevent warnings when negotiating caps (fixes #159338).
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Wed, 1 Dec 2004 15:18:35 +0000 (15:18 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Wed, 1 Dec 2004 15:18:35 +0000 (15:18 +0000)
Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* gst/law/alaw-decode.c: (alawdec_getcaps):
* gst/law/mulaw-decode.c: (mulawdec_getcaps):
Prevent warnings when negotiating caps (fixes #159338).

ChangeLog
gst/law/alaw-decode.c
gst/law/mulaw-decode.c

index df22a5b36f4d7599417bec4a1590788502352e8b..0e3081bdb1cf4d4481535ec0d32de84ebcec3fa3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-12-01  Sebastien Cote  <sc5@hermes.usherb.ca>
+
+       Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
+
+       * 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  <rbultje@ronald.bitfreak.net>
 
        * gst/ffmpegcolorspace/gstffmpegcolorspace.c:
index 47c684f86a3d3fbfce64dfb819a42cf0707abff3..12c57135218866ac50cc4d59b269e3898d1f1391 100644 (file)
@@ -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);
index 46d0273006e71a651fe09b801867ff5b3dc26e92..af957ec5df06986ba4f51bf760ee82c3a644c94b 100644 (file)
@@ -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);