Changeset bb03e12e367a4e3a5e8127fd5ebc1a7eb670c4f0
- Timestamp:
- 10/06/08 16:31:30
(4 months ago)
- Author:
- Antoine Cellerier <dionoea@videolan.org>
- git-committer:
- Antoine Cellerier <dionoea@videolan.org> 1213108290 +0200
- git-parent:
[a7588a7ed7877c3b46b193ea07b2fccf70d6e2c1]
- git-author:
- Antoine Cellerier <dionoea@videolan.org> 1213108290 +0200
- Message:
Partially fix sub picture filter chain handling. Still needs a bit of
work.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r39eef2d |
rbb03e12 |
|
| 96 | 96 | filter_chain_DeleteFilter( p_chain, |
|---|
| 97 | 97 | (filter_t*)p_chain->filters.pp_elems[0] ); |
|---|
| 98 | | es_format_Clean( &p_chain->fmt_in ); |
|---|
| 99 | | es_format_Clean( &p_chain->fmt_out ); |
|---|
| 100 | | es_format_Copy( &p_chain->fmt_in, p_fmt_in ); |
|---|
| 101 | | es_format_Copy( &p_chain->fmt_out, p_fmt_out ); |
|---|
| | 98 | if( p_fmt_in ) |
|---|
| | 99 | { |
|---|
| | 100 | es_format_Clean( &p_chain->fmt_in ); |
|---|
| | 101 | es_format_Copy( &p_chain->fmt_in, p_fmt_in ); |
|---|
| | 102 | } |
|---|
| | 103 | if( p_fmt_out ) |
|---|
| | 104 | { |
|---|
| | 105 | es_format_Clean( &p_chain->fmt_out ); |
|---|
| | 106 | es_format_Copy( &p_chain->fmt_out, p_fmt_out ); |
|---|
| | 107 | } |
|---|
| 102 | 108 | } |
|---|
| 103 | 109 | |
|---|
| re259db6 |
rbb03e12 |
|
| 55 | 55 | |
|---|
| 56 | 56 | static int spu_ParseChain( spu_t * ); |
|---|
| 57 | | static void spu_DeleteChain( spu_t * ); |
|---|
| 58 | 57 | static int SubFilterCallback( vlc_object_t *, char const *, |
|---|
| 59 | 58 | vlc_value_t, vlc_value_t, void * ); |
|---|
| … | … | |
| 190 | 189 | } |
|---|
| 191 | 190 | |
|---|
| 192 | | spu_DeleteChain( p_spu ); |
|---|
| | 191 | filter_chain_Delete( p_spu->p_chain ); |
|---|
| 193 | 192 | |
|---|
| 194 | 193 | vlc_mutex_destroy( &p_spu->subpicture_lock ); |
|---|
| 195 | 194 | vlc_object_release( p_spu ); |
|---|
| 196 | | } |
|---|
| 197 | | |
|---|
| 198 | | static void spu_DeleteChain( spu_t *p_spu ) |
|---|
| 199 | | { |
|---|
| 200 | | filter_chain_Delete( p_spu->p_chain ); |
|---|
| 201 | 195 | } |
|---|
| 202 | 196 | |
|---|
| … | … | |
| 1346 | 1340 | spu_t *p_spu = (spu_t *)p_data; |
|---|
| 1347 | 1341 | vlc_mutex_lock( &p_spu->subpicture_lock ); |
|---|
| 1348 | | spu_DeleteChain( p_spu ); |
|---|
| | 1342 | filter_chain_Reset( p_spu->p_chain, NULL, NULL ); |
|---|
| 1349 | 1343 | spu_ParseChain( p_spu ); |
|---|
| 1350 | 1344 | vlc_mutex_unlock( &p_spu->subpicture_lock ); |
|---|