From 13d9e8d35227337a04b0cd24a0dda7c0c3961289 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Sat, 30 Mar 2002 17:06:26 +0000 Subject: Changed to the new props API Original commit message from CVS: Changed to the new props API Other small tuff. --- ext/dv/gstdvdec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ext/dv') diff --git a/ext/dv/gstdvdec.c b/ext/dv/gstdvdec.c index 57a7baca..bf52497e 100644 --- a/ext/dv/gstdvdec.c +++ b/ext/dv/gstdvdec.c @@ -317,8 +317,12 @@ gst_dvdec_loop (GstElement *element) /* try each format */ if (gst_pad_try_set_caps (dvdec->videosrcpad, to_try)) { + guint32 fourcc; + /* it worked, try to find what it was again */ - if (gst_caps_get_fourcc_int (to_try, "format") == GST_STR_FOURCC ("RGB ")) { + gst_caps_get_fourcc_int (to_try, "format", &fourcc); + + if (fourcc == GST_STR_FOURCC ("RGB ")) { dvdec->space = e_dv_color_rgb; dvdec->bpp = 3; } -- cgit