Get the 'signed' property as a boolean.

Original commit message from CVS:
Get the 'signed' property as a boolean.
This commit is contained in:
Wim Taymans 2002-03-30 17:22:18 +00:00
parent 279b570c51
commit 7f17956d2b
2 changed files with 10 additions and 10 deletions

View file

@ -127,11 +127,11 @@ passthrough_connect_sink (GstPad *pad, GstCaps *caps)
if (strcmp (format, "int") == 0) { if (strcmp (format, "int") == 0) {
filter->format = GST_PASSTHROUGH_FORMAT_INT; filter->format = GST_PASSTHROUGH_FORMAT_INT;
gst_caps_get_int (caps, "width", &filter->width); gst_caps_get_int (caps, "width", &filter->width);
gst_caps_get_int (caps, "depth", &filter->depth); gst_caps_get_int (caps, "depth", &filter->depth);
gst_caps_get_int (caps, "law", &filter->law); gst_caps_get_int (caps, "law", &filter->law);
gst_caps_get_int (caps, "endianness", &filter->endianness); gst_caps_get_int (caps, "endianness", &filter->endianness);
gst_caps_get_int (caps, "signed", &filter->is_signed); gst_caps_get_boolean (caps, "signed", &filter->is_signed);
if (! filter->silent) { if (! filter->silent) {
g_print ("Passthrough : channels %d, rate %d\n", g_print ("Passthrough : channels %d, rate %d\n",

View file

@ -145,11 +145,11 @@ speed_parse_caps (GstSpeed *filter, GstCaps *caps)
if (strcmp(format, "int")==0) { if (strcmp(format, "int")==0) {
filter->format = GST_SPEED_FORMAT_INT; filter->format = GST_SPEED_FORMAT_INT;
gst_caps_get_int (caps, "width", &filter->width); gst_caps_get_int (caps, "width", &filter->width);
gst_caps_get_int (caps, "depth", &filter->depth); gst_caps_get_int (caps, "depth", &filter->depth);
gst_caps_get_int (caps, "law", &filter->law); gst_caps_get_int (caps, "law", &filter->law);
gst_caps_get_int (caps, "endianness", &filter->endianness); gst_caps_get_int (caps, "endianness", &filter->endianness);
gst_caps_get_int (caps, "signed", &filter->is_signed); gst_caps_get_boolean (caps, "signed", &filter->is_signed);
if (!filter->silent) { if (!filter->silent) {
g_print ("Speed : channels %d, rate %d\n", g_print ("Speed : channels %d, rate %d\n",