caps = gst_riff_create_video_caps (fourcc, NULL, NULL, NULL, NULL, NULL);
if (caps == NULL) {
- GST_WARNING_OBJECT (ogm, "could not find video caps for fourcc %"
- GST_FOURCC_FORMAT, GST_FOURCC_ARGS (fourcc));
- caps = gst_caps_new_simple ("video/x-ogm-unknown", "fourcc",
- G_TYPE_STRING, ogm->hdr.subtype, NULL);
+ gchar *fstr =
+ g_strdup_printf ("%" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (fourcc));
+ GST_WARNING_OBJECT (ogm, "could not find video caps for fourcc '%s'",
+ fstr);
+ caps =
+ gst_caps_new_simple ("video/x-ogm-unknown", "fourcc", G_TYPE_STRING,
+ fstr, NULL);
+ g_free (fstr);
break;
}