Skip to content
Browse files

[rbp] changed be consistent with Texture.cpp in enable the omx jpeg d…

…ecoder.
  • Loading branch information...
1 parent 30fe959 commit f5845bc4ce10cab3116e77cf188f84af6020e008 @huceke committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/pictures/Picture.cpp
View
4 xbmc/pictures/Picture.cpp
@@ -35,7 +35,7 @@
#include "DllSwScale.h"
#include "guilib/JpegIO.h"
#include "guilib/Texture.h"
-#if defined(HAVE_OMXLIB)
+#if defined(TARGET_RASPBERRY_PI)
#include "cores/omxplayer/OMXImage.h"
#endif
@@ -46,7 +46,7 @@ bool CPicture::CreateThumbnailFromSurface(const unsigned char *buffer, int width
CLog::Log(LOGDEBUG, "cached image '%s' size %dx%d", thumbFile.c_str(), width, height);
if (URIUtils::GetExtension(thumbFile).Equals(".jpg") || URIUtils::GetExtension(thumbFile).Equals(".tbn"))
{
-#if defined(HAVE_OMXLIB)
+#if defined(TARGET_RASPBERRY_PI)
COMXImage omxImage;
if (omxImage.CreateThumbnailFromSurface((BYTE *)buffer, width, height, XB_FMT_A8R8G8B8, stride, thumbFile.c_str()))
return true;

0 comments on commit f5845bc

Please sign in to comment.
Something went wrong with that request. Please try again.