small fix
authorghost <andreas.monzner@multimedia-labs.de>
Mon, 8 Dec 2008 15:27:17 +0000 (16:27 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Mon, 8 Dec 2008 15:27:17 +0000 (16:27 +0100)
lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp

index 0a3d035912770a3b76634510932045b0a0d800b1..5d6a08709cbd6d5d1a0bae74e6262efbce3d08cb 100644 (file)
@@ -120,9 +120,9 @@ eServiceDVD::eServiceDVD(const char *filename):
        if (fd > -1)
        {
                rd = read(fd, tmp, 255);
        if (fd > -1)
        {
                rd = read(fd, tmp, 255);
-               if (rd > 6 && !strncmp(tmp, "bestfit", 3))
+               if (rd > 6 && !strncmp(tmp, "bestfit", 7))
                        aspect = DDVD_JUSTSCALE;
                        aspect = DDVD_JUSTSCALE;
-               else if (rd > 8 && !strncmp(tmp, "letterbox", 5))
+               else if (rd > 8 && !strncmp(tmp, "letterbox", 9))
                        aspect = DDVD_LETTERBOX;
                close(fd);
        }
                        aspect = DDVD_LETTERBOX;
                close(fd);
        }