Changeset 1059:bf0181417839 in mediastreamer2


Ignore:
Timestamp:
Sep 21, 2010 4:46:09 PM (3 years ago)
Author:
nikita <nikita@…>
Branch:
default
Message:

bugfix in winsnd, test if device->buffer_playing != 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/winsnd.c

    r856 r1059  
    117117        wHdr = (WAVEHDR *) dwParam1; 
    118118        device = (WinSndData *)dwInstance; 
    119         device->buffer_playing--; 
     119                if (device->buffer_playing) 
     120                        device->buffer_playing--; 
    120121                if (device->stat_output==0) 
    121122                { 
Note: See TracChangeset for help on using the changeset viewer.