summaryrefslogtreecommitdiffstats
path: root/gst/smpte/gstsmpte.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/smpte/gstsmpte.c')
-rw-r--r--gst/smpte/gstsmpte.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gst/smpte/gstsmpte.c b/gst/smpte/gstsmpte.c
index 471495b4..95fd31e2 100644
--- a/gst/smpte/gstsmpte.c
+++ b/gst/smpte/gstsmpte.c
@@ -280,6 +280,13 @@ gst_smpte_update_mask (GstSMPTE * smpte, gint type, gint depth, gint width,
{
GstMask *newmask;
+ if (smpte->mask) {
+ if (smpte->type == type &&
+ smpte->depth == depth &&
+ smpte->width == width && smpte->height == height)
+ return TRUE;
+ }
+
newmask = gst_mask_factory_new (type, depth, width, height);
if (newmask) {
if (smpte->mask) {