Commit 9dd765ba authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Revert "Replace PRId64 by %p"

This reverts commit e7f23f35.
parent 553524f1
...@@ -52,7 +52,7 @@ void ...@@ -52,7 +52,7 @@ void
Media::setVideoLockCallback( void* callback ) Media::setVideoLockCallback( void* callback )
{ {
char param[64]; char param[64];
sprintf( param, ":sout-smem-video-prerender-callback=%p", callback ); sprintf( param, ":sout-smem-video-prerender-callback=%"PRId64, (intptr_t)callback );
addOption(param); addOption(param);
} }
...@@ -60,7 +60,7 @@ void ...@@ -60,7 +60,7 @@ void
Media::setVideoUnlockCallback( void* callback ) Media::setVideoUnlockCallback( void* callback )
{ {
char param[64]; char param[64];
sprintf( param, ":sout-smem-video-postrender-callback=%p", callback ); sprintf( param, ":sout-smem-video-postrender-callback=%"PRId64, (intptr_t)callback );
addOption( param ); addOption( param );
} }
...@@ -68,7 +68,7 @@ void ...@@ -68,7 +68,7 @@ void
Media::setAudioLockCallback( void* callback ) Media::setAudioLockCallback( void* callback )
{ {
char param[64]; char param[64];
sprintf( param, ":sout-smem-audio-prerender-callback=%p", callback ); sprintf( param, ":sout-smem-audio-prerender-callback=%"PRId64, (intptr_t)callback );
addOption(param); addOption(param);
} }
...@@ -76,7 +76,7 @@ void ...@@ -76,7 +76,7 @@ void
Media::setAudioUnlockCallback( void* callback ) Media::setAudioUnlockCallback( void* callback )
{ {
char param[64]; char param[64];
sprintf( param, ":sout-smem-audio-postrender-callback=%p", callback ); sprintf( param, ":sout-smem-audio-postrender-callback=%"PRId64, (intptr_t)callback );
addOption( param ); addOption( param );
} }
...@@ -85,7 +85,7 @@ Media::setVideoDataCtx( void* dataCtx ) ...@@ -85,7 +85,7 @@ Media::setVideoDataCtx( void* dataCtx )
{ {
char param[64]; char param[64];
sprintf( param, ":sout-smem-video-data=%p", dataCtx ); sprintf( param, ":sout-smem-video-data=%"PRId64, (intptr_t)dataCtx );
addOption( param ); addOption( param );
} }
...@@ -94,7 +94,7 @@ Media::setAudioDataCtx( void* dataCtx ) ...@@ -94,7 +94,7 @@ Media::setAudioDataCtx( void* dataCtx )
{ {
char param[64]; char param[64];
sprintf( param, ":sout-smem-audio-data=%p", dataCtx ); sprintf( param, ":sout-smem-audio-data=%"PRId64, (intptr_t)dataCtx );
addOption( param ); addOption( param );
} }
......
...@@ -110,11 +110,11 @@ WorkflowRenderer::setupRenderer( quint32 width, quint32 height, double fps ) ...@@ -110,11 +110,11 @@ WorkflowRenderer::setupRenderer( quint32 width, quint32 height, double fps )
m_media = new LibVLCpp::Media( "imem://" + QString( videoString ) ); m_media = new LibVLCpp::Media( "imem://" + QString( videoString ) );
m_media->addOption( inputSlave ); m_media->addOption( inputSlave );
sprintf( buffer, "imem-get=%p", getLockCallback() ); sprintf( buffer, "imem-get=%"PRId64, (intptr_t)getLockCallback() );
m_media->addOption( buffer ); m_media->addOption( buffer );
sprintf( buffer, ":imem-release=%p", getUnlockCallback() ); sprintf( buffer, ":imem-release=%"PRId64, (intptr_t)getUnlockCallback() );
m_media->addOption( buffer ); m_media->addOption( buffer );
sprintf( buffer, ":imem-data=%p", m_esHandler ); sprintf( buffer, ":imem-data=%"PRId64, (intptr_t)m_esHandler );
m_media->addOption( buffer ); m_media->addOption( buffer );
m_media->addOption( ":text-renderer dummy" ); m_media->addOption( ":text-renderer dummy" );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment