Changeset 720:a5c6f3514048 in roaraudio for plugins/xmms


Ignore:
Timestamp:
08/30/08 16:46:15 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

reset connection if we can not connect a new stream, maybe it helps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/xmms/roar.c

    r703 r720  
    182182 if ( (g_inst.data_fh = roar_simple_new_stream_obj(&(g_inst.con), &(g_inst.stream), 
    183183                              rate, nch, bits, codec, ROAR_DIR_PLAY)) == -1) { 
     184  roar_disconnect(&(g_inst.con)); 
     185  g_inst.state |= STATE_CONNECTED; 
     186  g_inst.state -= STATE_CONNECTED; 
    184187  return FALSE; 
    185188 } 
Note: See TracChangeset for help on using the changeset viewer.