Changeset 48ab4989596b30c06377d605c78bd0612b6b0c86
- Timestamp:
- 08/08/03 18:50:27
(5 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1060361427 +0000
- git-parent:
[417b4c294f372b1f31bd273a3a91af87535edaed]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1060361427 +0000
- Message:
* src/input/input_clock.c: reverted the patch that caused the regression in 0.6.1
* modules/packetizer/copy.c: fixed segfault
* modules/gui/wxwindows/wxwindows.cpp: compilation fix for wxWindows 2.5 cvs
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r53f8728 |
r48ab498 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2000-2001 VideoLAN |
|---|
| 5 | | * $Id: wxwindows.cpp,v 1.28 2003/07/29 21:14:10 gbazin Exp $ |
|---|
| | 5 | * $Id: wxwindows.cpp,v 1.29 2003/08/08 16:50:27 gbazin Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 224 | 224 | |
|---|
| 225 | 225 | /* Hack to pass the p_intf pointer to the new wxWindow Instance object */ |
|---|
| | 226 | #ifdef wxTheApp |
|---|
| | 227 | wxApp::SetInstance( new Instance( p_intf ) ); |
|---|
| | 228 | #else |
|---|
| 226 | 229 | wxTheApp = new Instance( p_intf ); |
|---|
| | 230 | #endif |
|---|
| 227 | 231 | |
|---|
| 228 | 232 | #if defined( WIN32 ) |
|---|
| r80a68e4 |
r48ab498 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001, 2002 VideoLAN |
|---|
| 5 | | * $Id: copy.c,v 1.12 2003/07/31 19:02:23 fenrir Exp $ |
|---|
| | 5 | * $Id: copy.c,v 1.13 2003/08/08 16:50:27 gbazin Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Laurent Aimar <fenrir@via.ecp.fr> |
|---|
| … | … | |
| 94 | 94 | { |
|---|
| 95 | 95 | packetizer_thread_t *p_pack; |
|---|
| 96 | | |
|---|
| 97 | | msg_Dbg( p_fifo, "Running copy packetizer (fcc=%4.4s)", (char*)&p_fifo->i_fourcc ); |
|---|
| | 96 | int i_ret; |
|---|
| | 97 | |
|---|
| | 98 | msg_Dbg( p_fifo, "Running copy packetizer (fcc=%4.4s)", |
|---|
| | 99 | (char*)&p_fifo->i_fourcc ); |
|---|
| 98 | 100 | |
|---|
| 99 | 101 | p_pack = malloc( sizeof( packetizer_thread_t ) ); |
|---|
| … | … | |
| 118 | 120 | } |
|---|
| 119 | 121 | |
|---|
| | 122 | i_ret = p_pack->p_fifo->b_error ? VLC_EGENERIC : VLC_SUCCESS; |
|---|
| 120 | 123 | End( p_pack ); |
|---|
| 121 | 124 | |
|---|
| 122 | | return( p_pack->p_fifo->b_error ? VLC_EGENERIC : VLC_SUCCESS ); |
|---|
| | 125 | return( i_ret ); |
|---|
| 123 | 126 | } |
|---|
| 124 | 127 | |
|---|
| rbf73ff6 |
r48ab498 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1999-2001 VideoLAN |
|---|
| 5 | | * $Id: input_clock.c,v 1.40 2003/08/01 00:05:07 gbazin Exp $ |
|---|
| | 5 | * $Id: input_clock.c,v 1.41 2003/08/08 16:50:27 gbazin Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Christophe Massiot <massiot@via.ecp.fr> |
|---|
| … | … | |
| 98 | 98 | i_sysdate /= 1000; |
|---|
| 99 | 99 | i_sysdate += (mtime_t)p_pgrm->sysdate_ref; |
|---|
| 100 | | |
|---|
| 101 | | if ( i_sysdate < mdate() - CR_MAX_GAP |
|---|
| 102 | | || i_sysdate > mdate() + CR_MAX_GAP ) |
|---|
| 103 | | { |
|---|
| 104 | | msg_Warn( p_input, "Bogus clock encountered, resetting" ); |
|---|
| 105 | | ClockNewRef( p_pgrm, i_clock, i_sysdate = mdate() ); |
|---|
| 106 | | } |
|---|
| 107 | 100 | } |
|---|
| 108 | 101 | |
|---|
| … | … | |
| 236 | 229 | } |
|---|
| 237 | 230 | |
|---|
| 238 | | if( ( p_pgrm->i_synchro_state != SYNCHRO_OK ) || ( i_clock == 0 ) ) |
|---|
| | 231 | if( ( p_pgrm->i_synchro_state != SYNCHRO_OK ) || |
|---|
| | 232 | ( i_clock == 0 && p_pgrm->last_cr != 0 ) ) |
|---|
| 239 | 233 | { |
|---|
| 240 | 234 | /* Feed synchro with a new reference point. */ |
|---|
| 241 | 235 | ClockNewRef( p_pgrm, i_clock, |
|---|
| 242 | | i_clock == 0 ? mdate() : |
|---|
| 243 | 236 | p_pgrm->last_pts + CR_MEAN_PTS_GAP > mdate() ? |
|---|
| 244 | 237 | p_pgrm->last_pts + CR_MEAN_PTS_GAP : mdate() ); |
|---|