Changeset 2cc99c5cbbd3de7f5ad677539af1b5c29dc8defe
- Timestamp:
- 05/12/08 14:48:45
(2 months ago)
- Author:
- Rémi Duraffort <ivoire@videolan.org>
- git-committer:
- Rémi Duraffort <ivoire@videolan.org> 1210596525 +0200
- git-parent:
[83fb33511475ce86a30d565e8f925830784d54b3]
- git-author:
- Rémi Duraffort <ivoire@videolan.org> 1210596525 +0200
- Message:
Avoid a potential segfault as vlc_object_create can fail.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r7bc28ee |
r2cc99c5 |
|
| 62 | 62 | p_playlist->p_preparse = vlc_object_create( p_playlist, |
|---|
| 63 | 63 | sizeof( playlist_preparse_t ) ); |
|---|
| 64 | | p_playlist->p_preparse->psz_object_name = strdup( "preparser" ); |
|---|
| 65 | 64 | if( !p_playlist->p_preparse ) |
|---|
| 66 | 65 | { |
|---|
| … | … | |
| 69 | 68 | return; |
|---|
| 70 | 69 | } |
|---|
| | 70 | p_playlist->p_preparse->psz_object_name = strdup( "preparser" ); |
|---|
| 71 | 71 | p_playlist->p_preparse->i_waiting = 0; |
|---|
| 72 | 72 | p_playlist->p_preparse->pp_waiting = NULL; |
|---|
| … | … | |
| 86 | 86 | p_playlist->p_fetcher = vlc_object_create( p_playlist, |
|---|
| 87 | 87 | sizeof( playlist_fetcher_t ) ); |
|---|
| 88 | | p_playlist->p_fetcher->psz_object_name = strdup( "fetcher" ); |
|---|
| 89 | 88 | if( !p_playlist->p_fetcher ) |
|---|
| 90 | 89 | { |
|---|
| … | … | |
| 93 | 92 | return; |
|---|
| 94 | 93 | } |
|---|
| | 94 | p_playlist->p_fetcher->psz_object_name = strdup( "fetcher" ); |
|---|
| 95 | 95 | p_playlist->p_fetcher->i_waiting = 0; |
|---|
| 96 | 96 | p_playlist->p_fetcher->pp_waiting = NULL; |
|---|