summaryrefslogtreecommitdiffstats
path: root/ext/dv/gstdvdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dv/gstdvdec.c')
-rw-r--r--ext/dv/gstdvdec.c6
1 files changed, 5 insertions, 1 deletions
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;
}