mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
openexr: Fix some warnings
``` ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:46:24: warning: ‘Imf_3_1::Int64’ is deprecated: use uint64_t [-Wdeprecated-declarations] 46 | virtual Int64 tellg (); | ^ In file included from ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:32: /usr/include/OpenEXR/ImfInt64.h:23:32: note: declared here 23 | typedef IMATH_NAMESPACE::Int64 Int64; | ^~~~~ ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:47:32: warning: ‘Imf_3_1::Int64’ is deprecated: use uint64_t [-Wdeprecated-declarations] 47 | virtual void seekg (Int64 pos); | ^ In file included from ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:32: /usr/include/OpenEXR/ImfInt64.h:23:32: note: declared here 23 | typedef IMATH_NAMESPACE::Int64 Int64; | ^~~~~ ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:67:26: warning: ‘Imf_3_1::Int64’ is deprecated: use uint64_t [-Wdeprecated-declarations] 67 | Int64 MemIStream::tellg () | ^ In file included from ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:32: /usr/include/OpenEXR/ImfInt64.h:23:32: note: declared here 23 | typedef IMATH_NAMESPACE::Int64 Int64; | ^~~~~ ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:73:29: warning: ‘Imf_3_1::Int64’ is deprecated: use uint64_t [-Wdeprecated-declarations] 73 | MemIStream::seekg (Int64 pos) | ^ In file included from ../subprojects/gst-plugins-bad/ext/openexr/gstopenexrdec.cpp:32: /usr/include/OpenEXR/ImfInt64.h:23:32: note: declared here 23 | typedef IMATH_NAMESPACE::Int64 Int64; | ^~~~~ ``` Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1977>
This commit is contained in:
parent
5182daaf88
commit
8819350b74
1 changed files with 5 additions and 5 deletions
|
@ -26,10 +26,10 @@
|
|||
|
||||
#include <gst/base/base.h>
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <ImfRgbaFile.h>
|
||||
#include <ImfIO.h>
|
||||
#include <ImfInt64.h>
|
||||
using namespace Imf;
|
||||
using namespace Imath;
|
||||
|
||||
|
@ -43,8 +43,8 @@ public:
|
|||
}
|
||||
|
||||
virtual bool read (char c[], int n);
|
||||
virtual Int64 tellg ();
|
||||
virtual void seekg (Int64 pos);
|
||||
virtual uint64_t tellg ();
|
||||
virtual void seekg (uint64_t pos);
|
||||
virtual void clear ();
|
||||
|
||||
private:
|
||||
|
@ -64,13 +64,13 @@ bool MemIStream::read (char c[], int n)
|
|||
return (offset == size);
|
||||
}
|
||||
|
||||
Int64 MemIStream::tellg ()
|
||||
uint64_t MemIStream::tellg ()
|
||||
{
|
||||
return offset;
|
||||
}
|
||||
|
||||
void
|
||||
MemIStream::seekg (Int64 pos)
|
||||
MemIStream::seekg (uint64_t pos)
|
||||
{
|
||||
offset = pos;
|
||||
if (offset > size)
|
||||
|
|
Loading…
Reference in a new issue