Changeset 85c7ea2e8e6a0d5b3c6acebf3e7d94da695cacd3
- Timestamp:
- 01/05/04 14:07:03
(5 years ago)
- Author:
- Clément Stenac <zorglub@videolan.org>
- git-committer:
- Clément Stenac <zorglub@videolan.org> 1073308023 +0000
- git-parent:
[1595dc2534196eac95a1488e864292fab033e99c]
- git-author:
- Clément Stenac <zorglub@videolan.org> 1073308023 +0000
- Message:
* ALL: playlist API changes
What may be broken (untested):
- Theora and Speex decoders
- some interfaces
- VCDX and CDDAX access
The problems shouldn't hopefully excess compilation glitches.
(removal of AddExt?, of psz_author, and prototype of Add)
Additionnaly, interfaces that do not support item-change will have
update problems.
* Updated modules list
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r25cada6 |
r85c7ea2 |
|
| 1 | 1 | List of vlc plugins (221) |
|---|
| 2 | | $Id: LIST,v 1.18 2003/12/06 22:47:37 jpsaman Exp $ |
|---|
| | 2 | $Id: LIST,v 1.19 2004/01/05 13:07:02 zorglub Exp $ |
|---|
| 3 | 3 | |
|---|
| 4 | 4 | * a52: A/52 basic parser/packetizer |
|---|
| … | … | |
| 32 | 32 | * access_output_udp: UDP Network access_output module |
|---|
| 33 | 33 | |
|---|
| | 34 | * access_tcp: TCP Network access module |
|---|
| | 35 | |
|---|
| 34 | 36 | * access_udp: UDP Network access module |
|---|
| 35 | 37 | |
|---|
| … | … | |
| 93 | 95 | |
|---|
| 94 | 96 | * dts: DTS basic parser/packetizer |
|---|
| | 97 | |
|---|
| | 98 | * dtssys: raw DTS stream input module |
|---|
| 95 | 99 | |
|---|
| 96 | 100 | * dtstospdif: Audio converter that encapsulates DTS into S/PDIF |
|---|
| … | … | |
| 179 | 183 | * i420_rgb_mmx: MMX accelerated version of i420_rgb. |
|---|
| 180 | 184 | |
|---|
| | 185 | * i420_ymga: YUV to YUC conversion functions |
|---|
| | 186 | |
|---|
| 181 | 187 | * i420_ymga_mmx: MMX accelerated version of i420_ymga |
|---|
| 182 | 188 | |
|---|
| 183 | | * i420_ymga: YUV to YUC conversion functions |
|---|
| | 189 | * i420_yuy2: planar 4:2:0 YUV to packed YUV conversion functions. |
|---|
| 184 | 190 | |
|---|
| 185 | 191 | * i420_yuy2_mmx: MMX accelerated version of i420_yuy2. |
|---|
| 186 | 192 | |
|---|
| 187 | | * i420_yuy2: planar 4:2:0 YUV to packed YUV conversion functions. |
|---|
| | 193 | * i422_yuy2: planar 4:2:2 YUV to packed YUV conversion functions. |
|---|
| 188 | 194 | |
|---|
| 189 | 195 | * i422_yuy2_mmx: MMX accelerated version of i422_yuy2. |
|---|
| 190 | 196 | |
|---|
| 191 | | * i422_yuy2: planar 4:2:2 YUV to packed YUV conversion functions. |
|---|
| 192 | | |
|---|
| 193 | 197 | * id3: ID3 tag skipper |
|---|
| 194 | 198 | |
|---|
| … | … | |
| 227 | 231 | * memcpy3dn: 3D Now! accelerated version of memcpy. |
|---|
| 228 | 232 | |
|---|
| | 233 | * memcpy: memory chunk copying module. |
|---|
| | 234 | |
|---|
| 229 | 235 | * memcpyaltivec: Altivec accelerated version of memcpy. |
|---|
| 230 | 236 | |
|---|
| 231 | | * memcpy: memory chunk copying module. |
|---|
| 232 | | |
|---|
| | 237 | * memcpymmx: MMX accelerated version of memcpy. |
|---|
| | 238 | |
|---|
| 233 | 239 | * memcpymmxext: MMX EXT accelerated version of memcpy. |
|---|
| 234 | 240 | |
|---|
| 235 | | * memcpymmx: MMX accelerated version of memcpy. |
|---|
| 236 | | |
|---|
| 237 | 241 | * mga: video output module for Matrox cards using the Linux mga kernel driver. |
|---|
| 238 | 242 | |
|---|
| … | … | |
| 250 | 254 | |
|---|
| 251 | 255 | * mpgatofixed32: MPEG-1 & 2 audio layer I,II,III audio decoder using MAD |
|---|
| | 256 | |
|---|
| | 257 | * mpgv: MPEG-I/II Vid�demuxer |
|---|
| 252 | 258 | |
|---|
| 253 | 259 | * mux_asf: ASF muxer |
|---|
| … | … | |
| 262 | 268 | |
|---|
| 263 | 269 | * mux_ps: MPEG program stream muxer |
|---|
| | 270 | |
|---|
| | 271 | * mux_ts: MPEG transport stream muxer |
|---|
| 264 | 272 | |
|---|
| 265 | 273 | * mux_ts_dvbpsi: MPEG transport stream muxer using libdvbpsi |
|---|
| 266 | 274 | |
|---|
| 267 | | * mux_ts: MPEG transport stream muxer |
|---|
| 268 | | |
|---|
| 269 | 275 | * ncurses: interface module using the ncurses library. |
|---|
| 270 | 276 | |
|---|
| … | … | |
| 289 | 295 | * postprocessing_c: Video Postprocessing module |
|---|
| 290 | 296 | |
|---|
| | 297 | * postprocessing_mmx: Video Postprocessing module using MMX |
|---|
| | 298 | |
|---|
| 291 | 299 | * postprocessing_mmxext: Video Postprocessing module using MMX_EXT |
|---|
| 292 | 300 | |
|---|
| 293 | | * postprocessing_mmx: Video Postprocessing module using MMX |
|---|
| 294 | | |
|---|
| 295 | 301 | * ps: input module for MPEG PS decapsulation. |
|---|
| 296 | 302 | |
|---|
| … | … | |
| 299 | 305 | * qnx: QNX RTOS plugin |
|---|
| 300 | 306 | |
|---|
| | 307 | * qt: interface module using the Qt widget set. |
|---|
| | 308 | |
|---|
| | 309 | * qte: video output module for Qt Embedded. |
|---|
| | 310 | |
|---|
| 301 | 311 | * qte_main: QT Embedded wrapper for gte_main |
|---|
| 302 | 312 | |
|---|
| 303 | | * qte: video output module for Qt Embedded. |
|---|
| 304 | | |
|---|
| 305 | | * qt: interface module using the Qt widget set. |
|---|
| 306 | | |
|---|
| 307 | 313 | * quicktime: Quicktime decoder that uses the QT library |
|---|
| 308 | 314 | |
|---|
| … | … | |
| 349 | 355 | * stream_out_gather: stream out module gathering inputs for seemless transitions |
|---|
| 350 | 356 | |
|---|
| | 357 | * stream_out_rtp: output using the RTP protocol |
|---|
| | 358 | |
|---|
| 351 | 359 | * stream_out_standard: standard stream output module |
|---|
| 352 | | |
|---|
| 353 | | * stream_out_rtp: output using the RTP protocol |
|---|
| 354 | 360 | |
|---|
| 355 | 361 | * stream_out_transcode: audio & video transcoder using ffmpeg |
|---|
| … | … | |
| 384 | 390 | * trivial_resampler: Simple audio resampler |
|---|
| 385 | 391 | |
|---|
| | 392 | * ts: input module for MPEG TS decapsulation. |
|---|
| | 393 | |
|---|
| 386 | 394 | * ts_dvbpsi: same as ts using libdvbpsi |
|---|
| 387 | 395 | |
|---|
| 388 | | * ts: input module for MPEG TS decapsulation. |
|---|
| 389 | | |
|---|
| 390 | 396 | * u8tofixed32: unsigned 8 bits to fixed 32 bits audio converter |
|---|
| 391 | 397 | |
|---|
| r3cbdd39 |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2000,2003 VideoLAN |
|---|
| 5 | | * $Id: access.c,v 1.19 2003/12/28 20:50:20 asmax Exp $ |
|---|
| | 5 | * $Id: access.c,v 1.20 2004/01/05 13:07:02 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Rocky Bernstein <rocky@panix.com> |
|---|
| … | … | |
| 315 | 315 | dbg_print( INPUT_DBG_META, "field %s: %s\n", title, str); \ |
|---|
| 316 | 316 | input_AddInfo( p_cat, _(title), "%s", str ); \ |
|---|
| | 317 | playlist_AddInfo( p_playlist, -1, p_cat->psz_name, \ |
|---|
| | 318 | _(title), "%s" , str ); \ |
|---|
| 317 | 319 | } |
|---|
| 318 | 320 | |
|---|
| … | … | |
| 321 | 323 | { |
|---|
| 322 | 324 | cdda_data_t *p_cdda = (cdda_data_t *) p_input->p_access_data; |
|---|
| | 325 | playlist_t *p_playlist = vlc_object_find( p_input, VLC_OBJECT_PLAYLIST, |
|---|
| | 326 | FIND_PARENT ); |
|---|
| 323 | 327 | input_info_category_t *p_cat; |
|---|
| 324 | 328 | |
|---|
| 325 | 329 | p_cat = input_InfoCategory( p_input, "General" ); |
|---|
| | 330 | |
|---|
| 326 | 331 | |
|---|
| 327 | 332 | #ifdef HAVE_LIBCDDB |
|---|
| … | … | |
| 364 | 369 | secstotimestr( psz_buffer, i_duration ) ); |
|---|
| 365 | 370 | } |
|---|
| | 371 | if( p_playlist ) vlc_object_release( p_playlist ); |
|---|
| 366 | 372 | } |
|---|
| 367 | 373 | |
|---|
| … | … | |
| 656 | 662 | dbg_print( INPUT_DBG_META, "mrl: %s, title: %s, duration, %ld, pos %d", |
|---|
| 657 | 663 | psz_mrl, p_title, (long int) i_duration, i_pos ); |
|---|
| 658 | | |
|---|
| 659 | | playlist_AddExt( p_playlist, psz_mrl, p_title, i_duration * 1000000, |
|---|
| 660 | | 0, 0, playlist_operation, i_pos ); |
|---|
| | 664 | playlist_Add( p_playlist, psz_mrl, p_title, playlist_operation, i_pos ); |
|---|
| | 665 | |
|---|
| | 666 | /* XXX Set the duration ! */ |
|---|
| 661 | 667 | |
|---|
| 662 | 668 | p_author = |
|---|
| … | … | |
| 665 | 671 | psz_mrl, i_track ); |
|---|
| 666 | 672 | |
|---|
| 667 | | /* FIXME: This is horrible, but until the playlist interface is fixed up |
|---|
| 668 | | something like this has to be done for the "Author" field. |
|---|
| 669 | | */ |
|---|
| 670 | 673 | if( i_pos == PLAYLIST_END ) i_pos = p_playlist->i_size - 1; |
|---|
| 671 | | free(p_playlist->pp_items[i_pos]->psz_author); |
|---|
| 672 | | p_playlist->pp_items[i_pos]->psz_author = strdup(p_author); |
|---|
| | 674 | playlist_AddInfo( p_playlist, i_pos, _("General"),_("Author"),p_author); |
|---|
| 673 | 675 | |
|---|
| 674 | 676 | } |
|---|
| … | … | |
| 676 | 678 | static int |
|---|
| 677 | 679 | CDDAFixupPlayList( input_thread_t *p_input, cdda_data_t *p_cdda, |
|---|
| 678 | | const char *psz_source, bool play_single_track) |
|---|
| | 680 | const char *psz_source, bool play_single_track) |
|---|
| 679 | 681 | { |
|---|
| 680 | 682 | int i; |
|---|
| r481fb38 |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001, 2002 VideoLAN |
|---|
| 5 | | * $Id: http.c,v 1.49 2004/01/03 18:41:36 rocky Exp $ |
|---|
| | 5 | * $Id: http.c,v 1.50 2004/01/05 13:07:02 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Christophe Massiot <massiot@via.ecp.fr> |
|---|
| … | … | |
| 351 | 351 | p_playlist->pp_items[p_playlist->i_index]->b_autodeletion |
|---|
| 352 | 352 | = VLC_TRUE; |
|---|
| 353 | | playlist_Add( p_playlist, psz_value, NULL, 0, |
|---|
| | 353 | playlist_Add( p_playlist, psz_value, psz_value, |
|---|
| 354 | 354 | PLAYLIST_INSERT | PLAYLIST_GO, |
|---|
| 355 | 355 | p_playlist->i_index + 1 ); |
|---|
| r84b846b |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001, 2002 VideoLAN |
|---|
| 5 | | * $Id: slp.c,v 1.17 2003/10/29 17:32:54 zorglub Exp $ |
|---|
| | 5 | * $Id: slp.c,v 1.18 2004/01/05 13:07:02 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Lo�Minier <lool@videolan.org> |
|---|
| … | … | |
| 188 | 188 | p_playlist_item->psz_name = NULL; |
|---|
| 189 | 189 | p_playlist_item->psz_uri = strdup( psz_s ); |
|---|
| 190 | | p_playlist_item->i_type = 0; |
|---|
| 191 | 190 | p_playlist_item->i_status = 0; |
|---|
| 192 | 191 | p_playlist_item->b_autodeletion = VLC_FALSE; |
|---|
| 193 | | p_playlist_item->i_options = 0; |
|---|
| 194 | | p_playlist_item->ppsz_options = 0; |
|---|
| 195 | | p_playlist_item->psz_author = NULL; |
|---|
| | 192 | p_playlist_item->i_duration = -1; |
|---|
| 196 | 193 | p_playlist_item->i_group = i_group; |
|---|
| 197 | 194 | p_playlist_item->b_enabled = VLC_TRUE; |
|---|
| | 195 | p_playlist_item->pp_categories = NULL; |
|---|
| | 196 | p_playlist_item->i_categories = NULL; |
|---|
| 198 | 197 | |
|---|
| 199 | 198 | /* search the description of the stream */ |
|---|
| r4fc0ccf |
r85c7ea2 |
|
| 5 | 5 | ***************************************************************************** |
|---|
| 6 | 6 | * Copyright (C) 2000, 2003, 2004 VideoLAN |
|---|
| 7 | | * $Id: access.c,v 1.14 2004/01/03 20:43:24 rocky Exp $ |
|---|
| | 7 | * $Id: access.c,v 1.15 2004/01/05 13:07:02 zorglub Exp $ |
|---|
| 8 | 8 | * |
|---|
| 9 | 9 | * Authors: Rocky Bernstein <rocky@panix.com> |
|---|
| … | … | |
| 980 | 980 | if ( str ) { \ |
|---|
| 981 | 981 | dbg_print( INPUT_DBG_META, "field: %s: %s\n", title, str); \ |
|---|
| 982 | | input_AddInfo( p_cat, _(title), "%s", str ); \ |
|---|
| | 982 | input_AddInfo( p_cat, _(title), "%s", str ); \ |
|---|
| | 983 | playlist_AddInfo( p_playlist, -1, p_cat->psz_name, _(title), \ |
|---|
| | 984 | "%s",str ); |
|---|
| 983 | 985 | } |
|---|
| 984 | 986 | |
|---|
| 985 | 987 | #define meta_info_add_num(title, num) \ |
|---|
| 986 | | dbg_print( INPUT_DBG_META, "field %s: %d\n", title, num); \ |
|---|
| | 988 | dbg_print( INPUT_DBG_META, "field %s: %d\n", title, num); \ |
|---|
| 987 | 989 | input_AddInfo( p_cat, _(title), "%d", num ); \ |
|---|
| | 990 | playlist_AddInfo( p_playlist, -1, p_cat->psz_name, _(title), \ |
|---|
| | 991 | "%d",num ); |
|---|
| 988 | 992 | |
|---|
| 989 | 993 | static void InformationCreate( input_thread_t *p_input ) |
|---|
| … | … | |
| 993 | 997 | unsigned int last_entry = 0; |
|---|
| 994 | 998 | input_info_category_t *p_cat; |
|---|
| | 999 | <<<<<<< access.c |
|---|
| | 1000 | playlist_item_t *p_playlist = vlc_object_find( p_input, VLC_OBJECT_PLAYLIST, |
|---|
| | 1001 | FIND_PARENT ); |
|---|
| | 1002 | ======= |
|---|
| 995 | 1003 | track_t i_track; |
|---|
| | 1004 | >>>>>>> 1.14 |
|---|
| 996 | 1005 | |
|---|
| 997 | 1006 | p_cat = input_InfoCategory( p_input, "General" ); |
|---|
| … | … | |
| 1025 | 1034 | vcdinfo_get_num_tracks(p_vcd->vcd)); |
|---|
| 1026 | 1035 | |
|---|
| | 1036 | <<<<<<< access.c |
|---|
| | 1037 | if( p_playlist) vlc_object_release( p_playlist ); |
|---|
| | 1038 | ======= |
|---|
| 1027 | 1039 | /* Spit out track information. Could also include MSF info. |
|---|
| 1028 | 1040 | */ |
|---|
| … | … | |
| 1048 | 1060 | meta_info_add_num( _("Last Entry Point"), last_entry-1 ); |
|---|
| 1049 | 1061 | } |
|---|
| | 1062 | >>>>>>> 1.14 |
|---|
| 1050 | 1063 | } |
|---|
| 1051 | 1064 | |
|---|
| … | … | |
| 1273 | 1286 | p_title = |
|---|
| 1274 | 1287 | VCDFormatStr( p_input, p_vcd, |
|---|
| 1275 | | config_GetPsz( p_input, MODULE_STRING "-title-format" ), |
|---|
| 1276 | | psz_mrl, itemid ); |
|---|
| 1277 | | |
|---|
| 1278 | | playlist_AddExt( p_playlist, psz_mrl, p_title, i_duration, |
|---|
| 1279 | | 0, 0, playlist_operation, i_pos ); |
|---|
| | 1288 | config_GetPsz( p_input, MODULE_STRING "-title-format" ), |
|---|
| | 1289 | psz_mrl, itemid ); |
|---|
| | 1290 | |
|---|
| | 1291 | playlist_Add( p_playlist, psz_mrl, p_title, playlist_operation, i_pos ); |
|---|
| 1280 | 1292 | |
|---|
| 1281 | 1293 | p_author = |
|---|
| 1282 | 1294 | VCDFormatStr( p_input, p_vcd, |
|---|
| 1283 | | config_GetPsz( p_input, MODULE_STRING "-author-format" ), |
|---|
| 1284 | | psz_mrl, itemid ); |
|---|
| | 1295 | config_GetPsz( p_input, MODULE_STRING "-author-format" ), |
|---|
| | 1296 | psz_mrl, itemid ); |
|---|
| 1285 | 1297 | |
|---|
| 1286 | 1298 | /* FIXME: This is horrible, but until the playlist interface is fixed up |
|---|
| … | … | |
| 1288 | 1300 | */ |
|---|
| 1289 | 1301 | if( i_pos == PLAYLIST_END ) i_pos = p_playlist->i_size - 1; |
|---|
| 1290 | | free(p_playlist->pp_items[i_pos]->psz_author); |
|---|
| 1291 | | p_playlist->pp_items[i_pos]->psz_author = strdup(p_author); |
|---|
| | 1302 | playlist_AddInfo(p_playlist, i_pos, _("General"), _("Author"), "%s",p_author); |
|---|
| 1292 | 1303 | } |
|---|
| 1293 | 1304 | |
|---|
| r4219568 |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2003 VideoLAN |
|---|
| 5 | | * $Id: speex.c,v 1.8 2003/12/22 02:24:51 sam Exp $ |
|---|
| | 5 | * $Id: speex.c,v 1.9 2004/01/05 13:07:02 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 27 | 27 | #include <vlc/vlc.h> |
|---|
| 28 | 28 | #include <vlc/decoder.h> |
|---|
| | 29 | #include "vlc_playlist.h" |
|---|
| 29 | 30 | |
|---|
| 30 | 31 | #include <ogg/ogg.h> |
|---|
| … | … | |
| 462 | 463 | input_info_category_t *p_cat = |
|---|
| 463 | 464 | input_InfoCategory( p_input, _("Speex comment") ); |
|---|
| | 465 | playlist_t *p_playlist = vlc_object_find( p_dec, VLC_OBJECT_PLAYLIST, |
|---|
| | 466 | FIND_ANYWHERE ); |
|---|
| 464 | 467 | |
|---|
| 465 | 468 | char *p_buf = (char *)p_oggpacket->packet; |
|---|
| … | … | |
| 470 | 473 | input_AddInfo( p_cat, _("Mode"), "%s%s", |
|---|
| 471 | 474 | p_mode->modeName, p_sys->p_header->vbr ? " VBR" : "" ); |
|---|
| | 475 | playlist_AddInfo( p_playlist, -1, _("Speex comment") , _("Mode"), "%s%s", |
|---|
| | 476 | p_mode->modeName, p_sys->p_header->vbr ? " VBR" : "" ); |
|---|
| 472 | 477 | |
|---|
| 473 | 478 | if( p_oggpacket->bytes < 8 ) |
|---|
| … | … | |
| 485 | 490 | |
|---|
| 486 | 491 | input_AddInfo( p_cat, p_buf, "" ); |
|---|
| | 492 | playlist_AddInfo( p_playlist, -1, _("Speex comment") , p_buf , "" ); |
|---|
| | 493 | |
|---|
| | 494 | if( p_playlist ) vlc_object_release( p_playlist ); |
|---|
| 487 | 495 | |
|---|
| 488 | 496 | /* TODO: finish comments parsing */ |
|---|
| r4219568 |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1999-2001 VideoLAN |
|---|
| 5 | | * $Id: theora.c,v 1.21 2003/12/22 02:24:51 sam Exp $ |
|---|
| | 5 | * $Id: theora.c,v 1.22 2004/01/05 13:07:02 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 28 | 28 | #include <vlc/decoder.h> |
|---|
| 29 | 29 | #include "input_ext-plugins.h" |
|---|
| | 30 | #include "vlc_playlist.h" |
|---|
| 30 | 31 | |
|---|
| 31 | 32 | #include <ogg/ogg.h> |
|---|
| … | … | |
| 338 | 339 | input_info_category_t *p_cat = |
|---|
| 339 | 340 | input_InfoCategory( p_input, _("Theora comment") ); |
|---|
| | 341 | playlist_t *p_playlist = vlc_object_find( p_dec, VLC_OBJECT_PLAYLIST, |
|---|
| | 342 | FIND_ANYWHERE ); |
|---|
| 340 | 343 | int i = 0; |
|---|
| 341 | 344 | char *psz_name, *psz_value, *psz_comment; |
|---|
| … | … | |
| 355 | 358 | psz_value++; |
|---|
| 356 | 359 | input_AddInfo( p_cat, psz_name, psz_value ); |
|---|
| | 360 | playlist_AddInfo( p_playlist, -1, _("Theora comment") , |
|---|
| | 361 | psz_name, psz_value ); |
|---|
| 357 | 362 | } |
|---|
| 358 | 363 | free( psz_comment ); |
|---|
| 359 | 364 | i++; |
|---|
| 360 | 365 | } |
|---|
| | 366 | if( p_playlist) vlc_object_release( p_playlist ); |
|---|
| 361 | 367 | } |
|---|
| 362 | 368 | |
|---|
| r4219568 |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001-2003 VideoLAN |
|---|
| 5 | | * $Id: vorbis.c,v 1.28 2003/12/22 02:24:51 sam Exp $ |
|---|
| | 5 | * $Id: vorbis.c,v 1.29 2004/01/05 13:07:02 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 27 | 27 | #include <vlc/vlc.h> |
|---|
| 28 | 28 | #include <vlc/decoder.h> |
|---|
| | 29 | #include "vlc_playlist.h" |
|---|
| 29 | 30 | |
|---|
| 30 | 31 | #include <ogg/ogg.h> |
|---|
| … | … | |
| 454 | 455 | input_info_category_t *p_cat = |
|---|
| 455 | 456 | input_InfoCategory( p_input, _("Vorbis comment") ); |
|---|
| | 457 | playlist_t *p_playlist = vlc_object_find( p_dec, VLC_OBJECT_PLAYLIST, |
|---|
| | 458 | FIND_ANYWHERE ); |
|---|
| 456 | 459 | int i = 0; |
|---|
| 457 | 460 | char *psz_name, *psz_value, *psz_comment; |
|---|
| … | … | |
| 471 | 474 | psz_value++; |
|---|
| 472 | 475 | input_AddInfo( p_cat, psz_name, psz_value ); |
|---|
| | 476 | playlist_AddInfo( p_playlist, -1, _("Vorbis comment") , |
|---|
| | 477 | psz_name, psz_value ); |
|---|
| 473 | 478 | } |
|---|
| 474 | 479 | free( psz_comment ); |
|---|
| 475 | 480 | i++; |
|---|
| 476 | 481 | } |
|---|
| | 482 | if( p_playlist ) vlc_object_release( p_playlist ); |
|---|
| 477 | 483 | } |
|---|
| 478 | 484 | |
|---|
| reb505a2 |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001 VideoLAN |
|---|
| 5 | | * $Id: corba.c,v 1.2 2003/07/23 01:13:47 gbazin Exp $ |
|---|
| | 5 | * $Id: corba.c,v 1.3 2004/01/05 13:07:02 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Olivier Aubert <oaubert at lisi dot univ-lyon1 dot fr> |
|---|
| … | … | |
| 561 | 561 | } |
|---|
| 562 | 562 | |
|---|
| 563 | | playlist_Add (p_playlist, psz_file, 0, 0, PLAYLIST_REPLACE, 0); |
|---|
| | 563 | playlist_Add (p_playlist, psz_file, psz_file , PLAYLIST_REPLACE, 0); |
|---|
| 564 | 564 | vlc_object_release( p_playlist ); |
|---|
| 565 | 565 | |
|---|
| ra58b4dc |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001 VideoLAN |
|---|
| 5 | | * $Id: http.c,v 1.41 2003/12/21 23:32:58 sam Exp $ |
|---|
| | 5 | * $Id: http.c,v 1.42 2004/01/05 13:07:02 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Gildas Bazin <gbazin@netcourrier.com> |
|---|
| … | … | |
| 2949 | 2949 | p_item->psz_name = mrl; |
|---|
| 2950 | 2950 | p_item->psz_uri = strdup( mrl ); |
|---|
| 2951 | | p_item->psz_author = strdup( "" ); |
|---|
| 2952 | 2951 | p_item->i_duration = -1; |
|---|
| 2953 | | p_item->i_type = 0; |
|---|
| 2954 | 2952 | p_item->i_status = 0; |
|---|
| 2955 | 2953 | p_item->b_autodeletion = VLC_FALSE; |
|---|
| … | … | |
| 2957 | 2955 | p_item->i_group = PLAYLIST_TYPE_MANUAL; |
|---|
| 2958 | 2956 | |
|---|
| 2959 | | p_item->ppsz_options = NULL; |
|---|
| 2960 | | p_item->i_options = i_options; |
|---|
| 2961 | | |
|---|
| 2962 | | if( i_options ) |
|---|
| 2963 | | { |
|---|
| 2964 | | p_item->ppsz_options = ppsz_options; |
|---|
| | 2957 | for( i = 0 ; i< i_options ; i++ ) |
|---|
| | 2958 | { |
|---|
| | 2959 | playlist_AddItemOption( p_item, ppsz_options[i] ); |
|---|
| 2965 | 2960 | } |
|---|
| 2966 | 2961 | |
|---|
| r5ca0ebc |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001 VideoLAN |
|---|
| 5 | | * $Id: rc.c,v 1.40 2003/12/22 14:32:55 sam Exp $ |
|---|
| | 5 | * $Id: rc.c,v 1.41 2004/01/05 13:07:02 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Author: Peter Surda <shurdeek@panorama.sth.ac.at> |
|---|
| … | … | |
| 656 | 656 | { |
|---|
| 657 | 657 | printf( "trying to add %s to playlist\n", newval.psz_string ); |
|---|
| 658 | | playlist_Add( p_playlist, newval.psz_string, NULL, 0, |
|---|
| | 658 | playlist_Add( p_playlist, newval.psz_string, newval.psz_string, |
|---|
| 659 | 659 | PLAYLIST_GO|PLAYLIST_APPEND, PLAYLIST_END ); |
|---|
| 660 | 660 | } |
|---|
| r92c1ab4 |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001 VideoLAN |
|---|
| 5 | | * $Id: m3u.c,v 1.24 2003/08/14 13:02:55 sigmunau Exp $ |
|---|
| | 5 | * $Id: m3u.c,v 1.25 2004/01/05 13:07:02 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no> |
|---|
| … | … | |
| 552 | 552 | if( b_next && *ppsz_uri ) |
|---|
| 553 | 553 | { |
|---|
| 554 | | playlist_AddExt( p_playlist, *ppsz_uri, |
|---|
| 555 | | *ppsz_name ? *ppsz_name : *ppsz_uri, -1, |
|---|
| 556 | | 0, 0, PLAYLIST_INSERT, *pi_position ); |
|---|
| | 554 | playlist_Add( p_playlist, *ppsz_uri, |
|---|
| | 555 | *ppsz_name ? *ppsz_name : *ppsz_uri, |
|---|
| | 556 | PLAYLIST_INSERT, *pi_position ); |
|---|
| 557 | 557 | (*pi_position)++; |
|---|
| 558 | 558 | if( *ppsz_name ) |
|---|
| … | … | |
| 661 | 661 | if( psz_uri ) |
|---|
| 662 | 662 | { |
|---|
| 663 | | playlist_Add( p_playlist, psz_uri, 0, 0, |
|---|
| | 663 | playlist_Add( p_playlist, psz_uri, psz_uri, |
|---|
| 664 | 664 | PLAYLIST_INSERT, i_position ); |
|---|
| 665 | 665 | } |
|---|
| r4219568 |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001 VideoLAN |
|---|
| 5 | | * $Id: mkv.cpp,v 1.50 2003/12/22 02:24:52 sam Exp $ |
|---|
| | 5 | * $Id: mkv.cpp,v 1.51 2004/01/05 13:07:02 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Laurent Aimar <fenrir@via.ecp.fr> |
|---|
| … | … | |
| 2167 | 2167 | demux_sys_t *p_sys = p_input->p_demux_data; |
|---|
| 2168 | 2168 | input_info_category_t *p_cat; |
|---|
| | 2169 | playlist_t *p_playlist; |
|---|
| 2169 | 2170 | int i_track; |
|---|
| 2170 | 2171 | |
|---|
| 2171 | 2172 | p_cat = input_InfoCategory( p_input, "Matroska" ); |
|---|
| | 2173 | p_playlist = (playlist_t*)vlc_object_find( p_input, VLC_OBJECT_PLAYLIST, FIND_PARENT ); |
|---|
| 2172 | 2174 | if( p_sys->f_duration > 1000.1 ) |
|---|
| 2173 | 2175 | { |
|---|
| r051ce62 |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001 VideoLAN |
|---|
| 5 | | * $Id: mp4.c,v 1.47 2004/01/05 12:37:52 jlj Exp $ |
|---|
| | 5 | * $Id: mp4.c,v 1.48 2004/01/05 13:07:02 zorglub Exp $ |
|---|
| 6 | 6 | * Authors: Laurent Aimar <fenrir@via.ecp.fr> |
|---|
| 7 | 7 | * |
|---|
| … | … | |
| 217 | 217 | { |
|---|
| 218 | 218 | msg_Dbg( p_input, "adding ref = `%s'", psz_ref ); |
|---|
| 219 | | playlist_Add( p_playlist, psz_ref, 0, 0, |
|---|
| | 219 | playlist_Add( p_playlist, psz_ref, psz_ref, |
|---|
| 220 | 220 | PLAYLIST_APPEND, PLAYLIST_END ); |
|---|
| 221 | 221 | } |
|---|
| … | … | |
| 239 | 239 | strcat( psz_absolute, psz_ref ); |
|---|
| 240 | 240 | msg_Dbg( p_input, "adding ref = `%s'", psz_absolute ); |
|---|
| 241 | | playlist_Add( p_playlist, psz_absolute, 0, 0, |
|---|
| | 241 | playlist_Add( p_playlist, psz_absolute, psz_absolute, |
|---|
| 242 | 242 | PLAYLIST_APPEND, PLAYLIST_END ); |
|---|
| 243 | 243 | } |
|---|
| rc3638c4 |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001 VideoLAN |
|---|
| 5 | | * $Id: VlcWrapper.cpp,v 1.40 2003/12/04 10:25:47 gbazin Exp $ |
|---|
| | 5 | * $Id: VlcWrapper.cpp,v 1.41 2004/01/05 13:07:03 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Florian G. Pflug <fgp@phlo.org> |
|---|
| … | … | |
| 366 | 366 | { |
|---|
| 367 | 367 | playlist_Add( p_playlist, o_file->String(), |
|---|
| 368 | | 0, 0, mode, index ); |
|---|
| | 368 | o_file->String(), mode, index ); |
|---|
| 369 | 369 | if ( mode == PLAYLIST_INSERT ) |
|---|
| 370 | 370 | index++; |
|---|
| … | … | |
| 389 | 389 | else |
|---|
| 390 | 390 | o_device.Prepend( "dvdold:" ); |
|---|
| 391 | | playlist_Add( p_playlist, o_device.String(), 0, 0, |
|---|
| | 391 | playlist_Add( p_playlist, o_device.String(), o_device.String(), |
|---|
| 392 | 392 | PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END ); |
|---|
| 393 | 393 | } |
|---|
| r5ca0ebc |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2000, 2001, 2003 VideoLAN |
|---|
| 5 | | * $Id: open.c,v 1.22 2003/12/22 14:32:56 sam Exp $ |
|---|
| | 5 | * $Id: open.c,v 1.23 2004/01/05 13:07:03 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Sam Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 651 | 651 | psz_target = gtk_entry_get_text( GTK_ENTRY( lookup_widget( |
|---|
| 652 | 652 | GTK_WIDGET(button), "entry_open" ) ) ); |
|---|
| 653 | | playlist_Add( p_playlist, (char*)psz_target, 0, 0, |
|---|
| | 653 | playlist_Add( p_playlist, (char*)psz_target, (char*)psz_target, |
|---|
| 654 | 654 | PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END ); |
|---|
| 655 | 655 | |
|---|
| r5ca0ebc |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001 VideoLAN |
|---|
| 5 | | * $Id: playlist.c,v 1.8 2003/12/22 14:32:56 sam Exp $ |
|---|
| | 5 | * $Id: playlist.c,v 1.9 2004/01/05 13:07:03 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Pierre Baillet <oct@zoy.org> |
|---|
| … | … | |
| 623 | 623 | the item where they are suppose to go but, hey |
|---|
| 624 | 624 | this works :P (btw, you are really nasty too) */ |
|---|
| 625 | | g_list_nth_data( p_list, i_dummy ), 0, 0, |
|---|
| | 625 | g_list_nth_data( p_list, i_dummy ), |
|---|
| | 626 | g_list_nth_data( p_list, i_dummy ), |
|---|
| 626 | 627 | i_dummy == 0 ? PLAYLIST_INSERT | PLAYLIST_GO : PLAYLIST_INSERT, |
|---|
| 627 | 628 | i_pos == PLAYLIST_END ? PLAYLIST_END : ( i_pos + i_dummy ) ); |
|---|
| rc3638c4 |
r85c7ea2 |
|
| 209 | 209 | { |
|---|
| 210 | 210 | fileOpenRecent->addURL( url ); |
|---|
| 211 | | playlist_Add( p_playlist, url.path(), 0, 0, |
|---|
| | 211 | playlist_Add( p_playlist, url.path(), url.path(), |
|---|
| 212 | 212 | PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END ); |
|---|
| 213 | 213 | vlc_object_release( p_playlist ); |
|---|
| … | … | |
| 537 | 537 | { |
|---|
| 538 | 538 | // add it to playlist |
|---|
| 539 | | playlist_Add( p_playlist, source.latin1(), 0, 0, |
|---|
| | 539 | playlist_Add( p_playlist, source.latin1(), source.latin1(), |
|---|
| 540 | 540 | PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END ); |
|---|
| 541 | 541 | vlc_object_release( p_playlist ); |
|---|
| … | … | |
| 563 | 563 | { |
|---|
| 564 | 564 | // add it to playlist |
|---|
| 565 | | playlist_Add( p_playlist, source.latin1(), 0, 0, |
|---|
| | 565 | playlist_Add( p_playlist, source.latin1(), source.latin1(), |
|---|
| 566 | 566 | PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END ); |
|---|
| 567 | 567 | vlc_object_release( p_playlist ); |
|---|
| … | … | |
| 665 | 665 | { |
|---|
| 666 | 666 | fileOpenRecent->addURL( *i ); |
|---|
| 667 | | playlist_Add( p_playlist, (*i).path(), 0, 0, |
|---|
| | 667 | playlist_Add( p_playlist, (*i).path(), (*i).path(), |
|---|
| 668 | 668 | PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END ); |
|---|
| 669 | 669 | } |
|---|
| reb505a2 |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2002-2003 VideoLAN |
|---|
| 5 | | * $Id: applescript.m,v 1.4 2003/07/23 01:13:47 gbazin Exp $ |
|---|
| | 5 | * $Id: applescript.m,v 1.5 2004/01/05 13:07:03 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Derk-Jan Hartman <thedj@users.sourceforge.net> |
|---|
| … | … | |
| 57 | 57 | |
|---|
| 58 | 58 | playlist_Add( p_playlist, [o_urlString fileSystemRepresentation], |
|---|
| 59 | | 0, 0, i_mode, PLAYLIST_END ); |
|---|
| | 59 | [o_urlString fileSystemRepresentation], |
|---|
| | 60 | i_mode, PLAYLIST_END ); |
|---|
| 60 | 61 | |
|---|
| 61 | 62 | o_url = [NSURL fileURLWithPath: o_urlString]; |
|---|
| r716dd47 |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2002-2003 VideoLAN |
|---|
| 5 | | * $Id: playlist.m,v 1.49 2003/12/15 14:25:43 hartman Exp $ |
|---|
| | 5 | * $Id: playlist.m,v 1.50 2004/01/05 13:07:03 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> |
|---|
| … | … | |
| 307 | 307 | p_playlist->pp_items[i_current]->psz_name]; |
|---|
| 308 | 308 | o_current_author = [NSString stringWithUTF8String: |
|---|
| 309 | | p_playlist->pp_items[i_current]->psz_author]; |
|---|
| | 309 | playlist_GetInfo(p_playlist, i_current ,_("General"),_("Author") )]; |
|---|
| 310 | 310 | vlc_mutex_unlock( &p_playlist->object_lock ); |
|---|
| 311 | 311 | |
|---|
| … | … | |
| 395 | 395 | } |
|---|
| 396 | 396 | |
|---|
| 397 | | playlist_AddExt( p_playlist, [o_url fileSystemRepresentation], [o_name UTF8String], -1, |
|---|
| | 397 | playlist_Add( p_playlist, [o_url fileSystemRepresentation], |
|---|
| | 398 | [o_name UTF8String], i_mode, |
|---|
| | 399 | i_position == -1 ? PLAYLIST_END : i_position + i_item); |
|---|
| | 400 | /*-1, |
|---|
| 398 | 401 | (ppsz_options != NULL ) ? (const char **)ppsz_options : 0, i_total_options, |
|---|
| 399 | | i_mode, i_position == -1 ? PLAYLIST_END : i_position + i_item); |
|---|
| | 402 | i_mode, i_position == -1 ? PLAYLIST_END : i_position + i_item);*/ |
|---|
| 400 | 403 | |
|---|
| 401 | 404 | /* clean up */ |
|---|
| … | … | |
| 510 | 513 | vlc_mutex_lock( &p_playlist->object_lock ); |
|---|
| 511 | 514 | o_value = [NSString stringWithUTF8String: |
|---|
| 512 | | p_playlist->pp_items[i_row]->psz_author]; |
|---|
| | 515 | playlist_GetInfo(p_playlist, i_row ,_("General"),_("Author") )]; |
|---|
| 513 | 516 | vlc_mutex_unlock( &p_playlist->object_lock ); |
|---|
| 514 | 517 | } |
|---|
| r43e9ac1 |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2000, 2001 VideoLAN |
|---|
| 5 | | * $Id: pda_callbacks.c,v 1.23 2003/12/07 18:58:38 jpsaman Exp $ |
|---|
| | 5 | * $Id: pda_callbacks.c,v 1.24 2004/01/05 13:07:03 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Jean-Paul Saman <jpsaman@wxs.nl> |
|---|
| … | … | |
| 92 | 92 | intf_thread_t *p_intf = GtkGetIntf( widget ); |
|---|
| 93 | 93 | playlist_t *p_playlist; |
|---|
| | 94 | int i , i_id , i_pos; |
|---|
| 94 | 95 | GtkTreeView *p_tvplaylist = NULL; |
|---|
| 95 | 96 | |
|---|
| … | … | |
| 133 | 134 | #endif |
|---|
| 134 | 135 | { |
|---|
| 135 | | playlist_Add( p_playlist, (const char*)name, (const char**)ppsz_options, i_size, |
|---|
| | 136 | i_id = playlist_Add( p_playlist, (const char*)name, |
|---|
| | 137 | (const char*)name, |
|---|
| 136 | 138 | PLAYLIST_APPEND, PLAYLIST_END ); |
|---|
| | 139 | |
|---|
| | 140 | i_pos = playlist_GetPositionById( p_playlist, i_id ); |
|---|
| | 141 | |
|---|
| | 142 | for( i = 0 ; i< i_size ; i++ ) |
|---|
| | 143 | { |
|---|
| | 144 | playlist_AddOption( p_playlist, i_pos , ppsz_options[i] ); |
|---|
| | 145 | } |
|---|
| 137 | 146 | } |
|---|
| 138 | 147 | |
|---|
| … | … | |
| 659 | 668 | |
|---|
| 660 | 669 | i_pos = snprintf( &v4l_mrl[0], 6, "v4l"); |
|---|
| 661 | | v4l_mrl[5]='\0'; |
|---|
| | 670 | v4l_mrl[5]='\0'; |
|---|
| 662 | 671 | |
|---|
| 663 | 672 | entryV4LChannel = (GtkSpinButton*) lookup_widget( GTK_WIDGET(button), "entryV4LChannel" ); |
|---|
| rc3638c4 |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 1999, 2000 VideoLAN |
|---|
| 5 | | * $Id: intf.cpp,v 1.5 2003/12/04 10:25:47 gbazin Exp $ |
|---|
| | 5 | * $Id: intf.cpp,v 1.6 2004/01/05 13:07:03 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Samuel Hocevar <sam@zoy.org> |
|---|
| … | … | |
| 300 | 300 | } |
|---|
| 301 | 301 | |
|---|
| 302 | | playlist_Add( p_playlist, file.latin1(), 0, 0, |
|---|
| | 302 | playlist_Add( p_playlist, file.latin1(), file.latin1(), |
|---|
| 303 | 303 | PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END ); |
|---|
| 304 | 304 | vlc_object_release( p_playlist ); |
|---|
| rffe7cd8 |
r85c7ea2 |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2003 VideoLAN |
|---|
| 5 | | * $Id: vlcproc.cpp,v 1.52 2003/10/23 16:00:48 gbazin Exp $ |
|---|
| | 5 | * $Id: vlcproc.cpp,v 1.53 2004/01/05 13:07:03 zorglub Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Olivier Teuli� <ipkiss@via.ecp.fr> |
|---|
| … | … | |
| 445 | 445 | { |
|---|
| 446 | 446 | // Enqueue |
|---|