From f7f4ddacc79f4f355f6baca26f4c0ccaa884427c Mon Sep 17 00:00:00 2001 From: "gunsoo83.kim" Date: Thu, 23 Oct 2014 17:05:23 +0900 Subject: [PATCH] Fix incorrect ioctl handling at version check. - When the emulator plugin is checking the codec version, fix incorrect the ioctl handling. Change-Id: I372a1686a880fe567837d392241fbd83b7d2db3c Signed-off-by: gunsoo83.kim --- src/gstmaru.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gstmaru.c b/src/gstmaru.c index b858dbd..95aedf3 100644 --- a/src/gstmaru.c +++ b/src/gstmaru.c @@ -73,7 +73,7 @@ gst_maru_codec_element_init () // get device version // if version 3 device_version = interface_version_3->get_device_version(fd); - if (device_version == -EINVAL) { + if (device_version < 0) { // if version 2 device_version = interface_version_2->get_device_version(fd); } -- 2.7.4