diff --git a/src/gstducatividdec.c b/src/gstducatividdec.c
index d2c7edbae5ad1bc48cb6fbca8aee95db3eae134b..e94ddc55f8f61da4b1d08f3839633868d3f5efb2 100644 (file)
--- a/src/gstducatividdec.c
+++ b/src/gstducatividdec.c
h = ALIGN2 (self->input_height, 4); /* round up to MB */
w = ALIGN2 (self->input_width, 4); /* round up to MB */
+
+ } else {
+
+ h = ALIGN2 (1080, 4); /* round up to MB */
+ w = ALIGN2 (1920, 4); /* round up to MB */
+ }
+
/* if we've already created codec, but the resolution has changed, we
* need to re-create the codec:
*/
gst_buffer_unmap (buffer, &info);
}
- if (buffer) {
- gst_buffer_unref (buffer);
- }
}
- return TRUE;
- }
-
- return FALSE;
+ return TRUE;
}
static gboolean