[vlmc-devel] commit: Replace PRId64 by %p ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Fri Sep 17 15:19:33 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Fri Sep 17 15:19:08 2010 +0200| [e7f23f35f5f0280eca61e4b8dc344356d1916075] | committer: Hugo Beauzée-Luyssen
Replace PRId64 by %p
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=e7f23f35f5f0280eca61e4b8dc344356d1916075
---
src/LibVLCpp/VLCMedia.cpp | 12 ++++++------
src/Renderer/WorkflowRenderer.cpp | 6 +++---
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/LibVLCpp/VLCMedia.cpp b/src/LibVLCpp/VLCMedia.cpp
index f4233a7..c2ed19d 100644
--- a/src/LibVLCpp/VLCMedia.cpp
+++ b/src/LibVLCpp/VLCMedia.cpp
@@ -52,7 +52,7 @@ void
Media::setVideoLockCallback( void* callback )
{
char param[64];
- sprintf( param, ":sout-smem-video-prerender-callback=%"PRId64, (intptr_t)callback );
+ sprintf( param, ":sout-smem-video-prerender-callback=%p", callback );
addOption(param);
}
@@ -60,7 +60,7 @@ void
Media::setVideoUnlockCallback( void* callback )
{
char param[64];
- sprintf( param, ":sout-smem-video-postrender-callback=%"PRId64, (intptr_t)callback );
+ sprintf( param, ":sout-smem-video-postrender-callback=%p", callback );
addOption( param );
}
@@ -68,7 +68,7 @@ void
Media::setAudioLockCallback( void* callback )
{
char param[64];
- sprintf( param, ":sout-smem-audio-prerender-callback=%"PRId64, (intptr_t)callback );
+ sprintf( param, ":sout-smem-audio-prerender-callback=%p", callback );
addOption(param);
}
@@ -76,7 +76,7 @@ void
Media::setAudioUnlockCallback( void* callback )
{
char param[64];
- sprintf( param, ":sout-smem-audio-postrender-callback=%"PRId64, (intptr_t)callback );
+ sprintf( param, ":sout-smem-audio-postrender-callback=%p", callback );
addOption( param );
}
@@ -85,7 +85,7 @@ Media::setVideoDataCtx( void* dataCtx )
{
char param[64];
- sprintf( param, ":sout-smem-video-data=%"PRId64, (intptr_t)dataCtx );
+ sprintf( param, ":sout-smem-video-data=%p", dataCtx );
addOption( param );
}
@@ -94,7 +94,7 @@ Media::setAudioDataCtx( void* dataCtx )
{
char param[64];
- sprintf( param, ":sout-smem-audio-data=%"PRId64, (intptr_t)dataCtx );
+ sprintf( param, ":sout-smem-audio-data=%p", dataCtx );
addOption( param );
}
diff --git a/src/Renderer/WorkflowRenderer.cpp b/src/Renderer/WorkflowRenderer.cpp
index 8d56b00..3745681 100644
--- a/src/Renderer/WorkflowRenderer.cpp
+++ b/src/Renderer/WorkflowRenderer.cpp
@@ -110,11 +110,11 @@ WorkflowRenderer::setupRenderer( quint32 width, quint32 height, double fps )
m_media = new LibVLCpp::Media( "imem://" + QString( videoString ) );
m_media->addOption( inputSlave );
- sprintf( buffer, "imem-get=%"PRId64, (intptr_t)getLockCallback() );
+ sprintf( buffer, "imem-get=%p", getLockCallback() );
m_media->addOption( buffer );
- sprintf( buffer, ":imem-release=%"PRId64, (intptr_t)getUnlockCallback() );
+ sprintf( buffer, ":imem-release=%p", getUnlockCallback() );
m_media->addOption( buffer );
- sprintf( buffer, ":imem-data=%"PRId64, (intptr_t)m_esHandler );
+ sprintf( buffer, ":imem-data=%p", m_esHandler );
m_media->addOption( buffer );
m_media->addOption( ":text-renderer dummy" );
}
More information about the Vlmc-devel
mailing list