]> git.sesse.net Git - mlt/commitdiff
fix possible null pointer dereference (coverity-714580)
authorDan Dennedy <dan@dennedy.org>
Fri, 17 Aug 2012 06:46:42 +0000 (23:46 -0700)
committerDan Dennedy <dan@dennedy.org>
Fri, 17 Aug 2012 06:46:42 +0000 (23:46 -0700)
src/modules/linsys/consumer_SDIstream.c

index b8be59110c5fc4fc0fc3a8a606da4ecdc7aa15e4..8e7cec5e8f243265cc4e3a69a778ff91e12991ce 100644 (file)
@@ -395,7 +395,7 @@ static void *consumer_thread(void *arg) {
                } else {
                        this->blanking = mlt_properties_get_int(MLT_CONSUMER_PROPERTIES( consumer ), "blanking");
                }
-       } else if (strstr(this->device_file_video, "sdivideotx")) {
+       } else if (this->device_file_video && strstr(this->device_file_video, "sdivideotx")) {
                this->blanking = 0;
        } else {
                // set default value without HD board, also with blanking