mirror of
https://github.com/glest/glest-source.git
synced 2025-09-01 04:01:47 +02:00
- added macro for older libvlc compiling
This commit is contained in:
@@ -311,10 +311,12 @@ void callbacks( const libvlc_event_t* event, void* data ) {
|
|||||||
case libvlc_MediaParsedChanged:
|
case libvlc_MediaParsedChanged:
|
||||||
if(ctx->verboseEnabled) printf("libvlc_MediaParsedChanged\n");
|
if(ctx->verboseEnabled) printf("libvlc_MediaParsedChanged\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#if defined(LIBVLC_VERSION_PRE_2) && defined(LIBVLC_VERSION_PRE_1_1_0)
|
||||||
case libvlc_MediaPlayerVout:
|
case libvlc_MediaPlayerVout:
|
||||||
if(ctx->verboseEnabled) printf("libvlc_MediaPlayerVout\n");
|
if(ctx->verboseEnabled) printf("libvlc_MediaPlayerVout\n");
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case libvlc_MediaListItemAdded:
|
case libvlc_MediaListItemAdded:
|
||||||
if(ctx->verboseEnabled) printf("libvlc_MediaListItemAdded\n");
|
if(ctx->verboseEnabled) printf("libvlc_MediaListItemAdded\n");
|
||||||
break;
|
break;
|
||||||
@@ -775,10 +777,12 @@ bool VideoPlayer::initPlayer(string mediaURL) {
|
|||||||
// printf("ERROR CANNOT ADD EVENT [libvlc_MediaParsedChanged]\n");
|
// printf("ERROR CANNOT ADD EVENT [libvlc_MediaParsedChanged]\n");
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
#if defined(LIBVLC_VERSION_PRE_2) && defined(LIBVLC_VERSION_PRE_1_1_0)
|
||||||
event_added = libvlc_event_attach( eventManager, libvlc_MediaPlayerVout, callbacks, ctxPtr );
|
event_added = libvlc_event_attach( eventManager, libvlc_MediaPlayerVout, callbacks, ctxPtr );
|
||||||
if(event_added != 0) {
|
if(event_added != 0) {
|
||||||
printf("ERROR CANNOT ADD EVENT [libvlc_MediaPlayerVout]\n");
|
printf("ERROR CANNOT ADD EVENT [libvlc_MediaPlayerVout]\n");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// event_added = libvlc_event_attach( eventManager, libvlc_MediaListItemAdded, callbacks, ctxPtr );
|
// event_added = libvlc_event_attach( eventManager, libvlc_MediaListItemAdded, callbacks, ctxPtr );
|
||||||
// if(event_added != 0) {
|
// if(event_added != 0) {
|
||||||
|
Reference in New Issue
Block a user