File libdc1394.raw1394_set_iso_handler.patch of Package libdc1394

Bug 431916 - libdc1394-2.0.0-7: ordered comparison of pointer with integer zero

dc1394_capture.c:441: warning: ordered comparison of pointer with integer zero

---
 libdc1394-1.2.2/libdc1394/dc1394_capture.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/libdc1394-1.2.2/libdc1394/dc1394_capture.c
+++ b/libdc1394-1.2.2/libdc1394/dc1394_capture.c
@@ -438,11 +438,11 @@ dc1394_multi_capture(raw1394handle_t han
         _dc1394_buffer[cams[i].channel]= cams[i].capture_buffer;
 
         if (raw1394_set_iso_handler(handle,cams[i].channel,
-                                    _dc1394_video_iso_handler) < 0) 
+                                    _dc1394_video_iso_handler) == (iso_handler_t)-1)
         {
             /* error handling- for some reason something didn't work, 
                so we have to reset everything....*/
-            printf("(%s:%d) error!\n",__FILE__, __LINE__);
+            printf("(%s:%s:%d) error while calling raw1394_set_iso_handler!\n",__FILE__, __func__, __LINE__);
 
             for (j= i - 1; j > -1; j--) 
             {
openSUSE Build Service is sponsored by