Changeset 5ba84a43aab674f0946af0a1c06190677a6a8c73
- Timestamp:
- 27/04/04 03:04:53
(5 years ago)
- Author:
- Rocky Bernstein <rocky@videolan.org>
- git-committer:
- Rocky Bernstein <rocky@videolan.org> 1083027893 +0000
- git-parent:
[6a231625dd3a2d45d4ff7a87e5c6a3f23ff756d2]
- git-author:
- Rocky Bernstein <rocky@videolan.org> 1083027893 +0000
- Message:
ogt.c: add object_release for object_find
cvd.c: if spu-channel variable not set, don't bother handling subtitle.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rb878118 |
r5ba84a4 |
|
| 246 | 246 | if( !p_input ) return NULL; |
|---|
| 247 | 247 | |
|---|
| 248 | | var_Get( p_input, "spu-channel", &val ); |
|---|
| | 248 | if( var_Get( p_input, "spu-channel", &val ) ) { |
|---|
| | 249 | vlc_object_release( p_input ); |
|---|
| | 250 | return NULL; |
|---|
| | 251 | } |
|---|
| | 252 | |
|---|
| 249 | 253 | vlc_object_release( p_input ); |
|---|
| 250 | 254 | |
|---|
| r6607097 |
r5ba84a4 |
|
| 245 | 245 | p_block->i_buffer); |
|---|
| 246 | 246 | |
|---|
| 247 | | #if 0 |
|---|
| 248 | | if( config_GetInt( p_dec, "spu-channel" ) != p_buffer[1] ) |
|---|
| 249 | | return NULL; |
|---|
| 250 | | #else |
|---|
| 251 | 247 | /* Attach to our input thread and see if subtitle is selected. */ |
|---|
| 252 | 248 | { |
|---|
| … | … | |
| 258 | 254 | if( !p_input ) return NULL; |
|---|
| 259 | 255 | |
|---|
| 260 | | if( var_Get( p_input, "spu-channel", &val ) ) return NULL; |
|---|
| | 256 | if( var_Get( p_input, "spu-channel", &val ) ) { |
|---|
| | 257 | vlc_object_release( p_input ); |
|---|
| | 258 | return NULL; |
|---|
| | 259 | } |
|---|
| 261 | 260 | |
|---|
| | 261 | vlc_object_release( p_input ); |
|---|
| 262 | 262 | dbg_print( (DECODE_DBG_PACKET), |
|---|
| 263 | 263 | "val.i_int %x p_buffer[i] %x", val.i_int, p_buffer[1]); |
|---|
| … | … | |
| 270 | 270 | } |
|---|
| 271 | 271 | } |
|---|
| 272 | | #endif |
|---|
| 273 | 272 | |
|---|
| 274 | 273 | if ( p_sys->state == SUBTITLE_BLOCK_EMPTY ) { |
|---|