diff options
author | Benjamin Otte <otte@gnome.org> | 2004-06-29 11:20:25 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2004-06-29 11:20:25 +0000 |
commit | 624814ddda676c70d9fc11b296ed744205e436a0 (patch) | |
tree | 42621934b67a6369ef794d6796efcb177419d8a4 /sys/oss | |
parent | 281784c3387ed05c7d1465cafedb4b7f4cf582a2 (diff) |
sys/oss/: advertise correct template caps - we indeed do non-native endianness and 8bit audio has no endianness
Original commit message from CVS:
* sys/oss/gstosssink.c:
* sys/oss/gstosssrc.c:
advertise correct template caps - we indeed do non-native endianness
and 8bit audio has no endianness
* sys/ximage/ximagesink.c: (gst_ximagesink_getcaps):
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_getcaps):
avoid (wrong) duplications in getcaps function and return
template caps
Diffstat (limited to 'sys/oss')
-rw-r--r-- | sys/oss/gstosssink.c | 11 | ||||
-rw-r--r-- | sys/oss/gstosssrc.c | 9 |
2 files changed, 15 insertions, 5 deletions
diff --git a/sys/oss/gstosssink.c b/sys/oss/gstosssink.c index 1f9e6ff9..a7786c37 100644 --- a/sys/oss/gstosssink.c +++ b/sys/oss/gstosssink.c @@ -102,14 +102,19 @@ enum }; static GstStaticPadTemplate osssink_sink_factory = -GST_STATIC_PAD_TEMPLATE ("sink", + GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS ("audio/x-raw-int, " - "endianness = (int) BYTE_ORDER, " + "endianness = (int) { LITTLE_ENDIAN, BIG_ENDIAN }, " "signed = (boolean) { TRUE, FALSE }, " - "width = (int) { 8, 16 }, " + "width = (int) 16, " "depth = (int) { 8, 16 }, " + "rate = (int) [ 1, MAX ], " "channels = (int) [ 1, 2 ]; " + "audio/x-raw-int, " + "signed = (boolean) { TRUE, FALSE }, " + "width = (int) 8, " + "depth = (int) 8, " "rate = (int) [ 1, MAX ], " "channels = (int) [ 1, 2 ]") ); diff --git a/sys/oss/gstosssrc.c b/sys/oss/gstosssrc.c index 704b480e..bd23b817 100644 --- a/sys/oss/gstosssrc.c +++ b/sys/oss/gstosssrc.c @@ -75,10 +75,15 @@ static GstStaticPadTemplate osssrc_src_factory = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS ("audio/x-raw-int, " - "endianness = (int) BYTE_ORDER, " + "endianness = (int) { LITTLE_ENDIAN, BIG_ENDIAN }, " "signed = (boolean) { TRUE, FALSE }, " - "width = (int) { 8, 16 }, " + "width = (int) 16, " "depth = (int) { 8, 16 }, " + "rate = (int) [ 1, MAX ], " "channels = (int) [ 1, 2 ]; " + "audio/x-raw-int, " + "signed = (boolean) { TRUE, FALSE }, " + "width = (int) 8, " + "depth = (int) 8, " "rate = (int) [ 1, MAX ], " "channels = (int) [ 1, 2 ]") ); |