Changeset 00b95848260cd44f140a05da8aa5baf13580e2d3 for modules/demux
- Timestamp:
- 05/07/08 13:55:16 (5 months ago)
- git-parent:
- Files:
-
- modules/demux/asf/asf.c (modified) (1 diff)
- modules/demux/avi/avi.c (modified) (5 diffs)
- modules/demux/live555.cpp (modified) (4 diffs)
- modules/demux/mkv.cpp (modified) (2 diffs)
- modules/demux/nsv.c (modified) (1 diff)
- modules/demux/nuv.c (modified) (3 diffs)
- modules/demux/ps.c (modified) (2 diffs)
- modules/demux/pva.c (modified) (1 diff)
- modules/demux/rtp.c (modified) (1 diff)
- modules/demux/ts.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/demux/asf/asf.c
rccb8128 r00b9584 151 151 int i_result; 152 152 153 if( p_demux->b_die)153 if( !vlc_object_alive (p_demux) ) 154 154 break; 155 155 #if 0 modules/demux/avi/avi.c
r37a2578 r00b9584 978 978 if( !(++i_loop_count % 1024) ) 979 979 { 980 if( p_demux->b_die) return -1;980 if( !vlc_object_alive (p_demux) ) return -1; 981 981 msleep( 10000 ); 982 982 … … 1596 1596 for( ;; ) 1597 1597 { 1598 if( p_demux->b_die) return VLC_EGENERIC;1598 if( !vlc_object_alive (p_demux) ) return VLC_EGENERIC; 1599 1599 1600 1600 if( AVI_PacketGetHeader( p_demux, &avi_pk ) ) … … 1616 1616 if( !(++i_loop_count % 1024) ) 1617 1617 { 1618 if( p_demux->b_die) return VLC_EGENERIC;1618 if( !vlc_object_alive (p_demux) ) return VLC_EGENERIC; 1619 1619 msleep( 10000 ); 1620 1620 … … 2099 2099 if( !(++i_count % 1024) ) 2100 2100 { 2101 if( p_demux->b_die) return VLC_EGENERIC;2101 if( !vlc_object_alive (p_demux) ) return VLC_EGENERIC; 2102 2102 2103 2103 msleep( 10000 ); … … 2395 2395 avi_packet_t pk; 2396 2396 2397 if( p_demux->b_die)2397 if( !vlc_object_alive (p_demux) ) 2398 2398 { 2399 2399 return; modules/demux/live555.cpp
r260c389 r00b9584 324 324 i_sdp_max - i_sdp - 1 ); 325 325 326 if( p_demux->b_die|| p_demux->b_error )326 if( !vlc_object_alive (p_demux) || p_demux->b_error ) 327 327 { 328 328 free( p_sdp ); … … 508 508 createnew: 509 509 i_lefttries--; 510 if( p_demux->b_die|| p_demux->b_error )510 if( !vlc_object_alive (p_demux) || p_demux->b_error ) 511 511 { 512 512 free( psz_user ); … … 670 670 live_track_t *tk; 671 671 672 if( p_demux->b_die|| p_demux->b_error )672 if( !vlc_object_alive (p_demux) || p_demux->b_error ) 673 673 { 674 674 delete iter; … … 1797 1797 1798 1798 /* Avoid lock */ 1799 while( !p_timeout->b_die)1799 while( vlc_object_alive (p_timeout) ) 1800 1800 { 1801 1801 if( p_timeout->i_remain <= 0 ) modules/demux/mkv.cpp
rad2b7c8 r00b9584 2797 2797 2798 2798 /* main loop */ 2799 while( !p_ev->b_die)2799 while( vlc_object_alive (p_ev) ) 2800 2800 { 2801 2801 if ( !p_sys->b_pci_packet_set ) … … 3055 3055 3056 3056 /* VOUT part */ 3057 if( p_vout && p_vout->b_die)3057 if( p_vout && !vlc_object_alive (p_vout) ) 3058 3058 { 3059 3059 var_DelCallback( p_vout, "mouse-moved", EventMouse, p_ev ); modules/demux/nsv.c
r3561b9b r00b9584 388 388 int i_peek; 389 389 390 while( !p_demux->b_die)390 while( vlc_object_alive (p_demux) ) 391 391 { 392 392 if( ( i_peek = stream_Peek( p_demux->s, &p_peek, 1024 ) ) < 8 ) modules/demux/nuv.c
r3561b9b r00b9584 336 336 for( ;; ) 337 337 { 338 if( p_demux->b_die)338 if( !vlc_object_alive (p_demux) ) 339 339 return -1; 340 340 … … 443 443 } 444 444 445 while( !p_demux->b_die)445 while( vlc_object_alive (p_demux) ) 446 446 { 447 447 frame_header_t fh; … … 483 483 p_sys->i_pcr = -1; 484 484 485 while( !p_demux->b_die)485 while( vlc_object_alive (p_demux) ) 486 486 { 487 487 frame_header_t fh; modules/demux/ps.c
r52ca31e r00b9584 244 244 i = 0; 245 245 i_current_pos = stream_Tell( p_demux->s ); 246 while( !p_demux->b_die&& i < 40 && Demux2( p_demux, false ) > 0 ) i++;246 while( vlc_object_alive (p_demux) && i < 40 && Demux2( p_demux, false ) > 0 ) i++; 247 247 248 248 /* Check end */ … … 251 251 stream_Seek( p_demux->s, i_size - i_end ); 252 252 253 while( !p_demux->b_die&& Demux2( p_demux, true ) > 0 );253 while( vlc_object_alive (p_demux) && Demux2( p_demux, true ) > 0 ); 254 254 if( i_current_pos >= 0 ) stream_Seek( p_demux->s, i_current_pos ); 255 255 } modules/demux/pva.c
r3561b9b r00b9584 345 345 int i_peek; 346 346 347 while( !p_demux->b_die)347 while( vlc_object_alive (p_demux) ) 348 348 { 349 349 if( ( i_peek = stream_Peek( p_demux->s, &p_peek, 1024 ) ) < 8 ) modules/demux/rtp.c
rd17a6f2 r00b9584 373 373 block->p_buffer, block->i_buffer, false); 374 374 if (((len <= 0) && fd_dead (fd)) 375 || demux->b_die)375 || !vlc_object_alive (demux)) 376 376 { 377 377 block_Release (block); modules/demux/ts.c
rd802741 r00b9584 942 942 { 943 943 msg_Warn( p_demux, "lost sync" ); 944 while( !p_demux->b_die&& (i_pos < i_data) )944 while( vlc_object_alive (p_demux) && (i_pos < i_data) ) 945 945 { 946 946 i_pos++; … … 948 948 break; 949 949 } 950 if( !p_demux->b_die)950 if( vlc_object_alive (p_demux) ) 951 951 msg_Warn( p_demux, "sync found" ); 952 952 } … … 1053 1053 block_Release( p_pkt ); 1054 1054 1055 while( !p_demux->b_die)1055 while( vlc_object_alive (p_demux) ) 1056 1056 { 1057 1057 const uint8_t *p_peek;
