Changeset 10b303d9799f411d2c185d963b4e8875e872e335
- Timestamp:
- 06/23/07 21:00:52
(1 year ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1182625252 +0000
- git-parent:
[295830f1a60d7f5c1ed18e768250ae8d5ee81504]
- git-author:
- Rafaël Carré <funman@videolan.org> 1182625252 +0000
- Message:
Removes meta_export_t
Modify meta writer callback to take an input_item_t as argument, so a file non playing can be written
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| ra8a47dd |
r10b303d |
|
| 430 | 430 | /* divers */ |
|---|
| 431 | 431 | typedef struct vlc_meta_t vlc_meta_t; |
|---|
| 432 | | typedef struct meta_export_t meta_export_t; |
|---|
| 433 | 432 | |
|---|
| 434 | 433 | /* Stats */ |
|---|
| rd20dd24 |
r10b303d |
|
| 228 | 228 | }; |
|---|
| 229 | 229 | |
|---|
| 230 | | struct meta_export_t |
|---|
| 231 | | { |
|---|
| 232 | | input_item_t *p_item; |
|---|
| 233 | | const char *psz_file; |
|---|
| 234 | | }; |
|---|
| 235 | | |
|---|
| 236 | 230 | #define VLC_META_ENGINE_TITLE 0x00000001 |
|---|
| 237 | 231 | #define VLC_META_ENGINE_ARTIST 0x00000004 |
|---|
| r295830f |
r10b303d |
|
| 169 | 169 | static int WriteMeta( vlc_object_t *p_this ) |
|---|
| 170 | 170 | { |
|---|
| 171 | | playlist_t *p_playlist = (playlist_t *)p_this; |
|---|
| 172 | | meta_export_t *p_export = (meta_export_t *)p_playlist->p_private; |
|---|
| 173 | | input_item_t *p_item = p_export->p_item; |
|---|
| 174 | | |
|---|
| 175 | | TagLib::FileRef f( p_export->psz_file ); |
|---|
| | 171 | input_item_t *p_item = (input_item_t *)p_this; |
|---|
| | 172 | |
|---|
| | 173 | char *psz_uri = p_item->psz_uri; |
|---|
| | 174 | /* we can write meta data only in a file */ |
|---|
| | 175 | if( !strncmp( psz_uri, "file://", 7 ) ) |
|---|
| | 176 | psz_uri += 7; |
|---|
| | 177 | /* if the file is specified with its path, not prefixed with file:// */ |
|---|
| | 178 | else if( strncmp( psz_uri, "/", 1 ) ) |
|---|
| | 179 | return VLC_EGENERIC; |
|---|
| | 180 | |
|---|
| | 181 | TagLib::FileRef f( psz_uri ); |
|---|
| 176 | 182 | if( !f.isNull() && f.tag() ) |
|---|
| 177 | 183 | { |
|---|