Fix incorrect ioctl handling at version check. 48/29248/1
authorgunsoo83.kim <gunsoo83.kim@samsung.com>
Thu, 23 Oct 2014 08:05:23 +0000 (17:05 +0900)
committergunsoo83.kim <gunsoo83.kim@samsung.com>
Thu, 23 Oct 2014 08:05:23 +0000 (17:05 +0900)
- When the emulator plugin is checking the codec version,
  fix incorrect the ioctl handling.

Change-Id: I372a1686a880fe567837d392241fbd83b7d2db3c
Signed-off-by: gunsoo83.kim <gunsoo83.kim@samsung.com>
src/gstmaru.c

index b858dbd..95aedf3 100644 (file)
@@ -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);
   }