Ticket #13599: 0031-BufferConsumer.cpp-Fix-ordered-comparison-between-po.patch

File 0031-BufferConsumer.cpp-Fix-ordered-comparison-between-po.patch, 774 bytes (added by mt, 7 years ago)
  • src/kits/media/BufferConsumer.cpp

    From 98dc4c42fda2e21e7a2d34c05ece729871d4af96 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Wed, 12 Jul 2017 20:26:40 +0900
    Subject: [PATCH 31/31] BufferConsumer.cpp: Fix ordered comparison between
     pointer and zero.
    
    ---
     src/kits/media/BufferConsumer.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/kits/media/BufferConsumer.cpp b/src/kits/media/BufferConsumer.cpp
    index f59df95..7171140 100644
    a b BBufferConsumer::SetOutputBuffersFor(const media_source &source,  
    269269
    270270    int32 buffer_count = 0;
    271271
    272     if (group > 0) {
     272    if (group != NULL) {
    273273        if (group->CountBuffers(&buffer_count) != B_OK)
    274274            return B_ERROR;
    275275    }