gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r9930: define GST_TIME_AS_MSECONDS w


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r9930: define GST_TIME_AS_MSECONDS when not already defined
Date: Mon, 06 Oct 2008 11:59:04 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9930
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Mon 2008-10-06 11:59:04 +0200
message:
  define GST_TIME_AS_MSECONDS when not already defined
modified:
  libmedia/gst/GstUtil.h
  libmedia/gst/MediaParserGst.cpp
=== modified file 'libmedia/gst/GstUtil.h'
--- a/libmedia/gst/GstUtil.h    2008-03-28 16:23:06 +0000
+++ b/libmedia/gst/GstUtil.h    2008-10-06 09:59:04 +0000
@@ -31,6 +31,12 @@
 #include "image.h"
 #include "dsodefs.h" // DSOEXPORT
 
+// GST_TIME_AS_MSECONDS not defined as of gst 0.10.9
+// is defined as of gst 0.10.19
+#ifndef GST_TIME_AS_MSECONDS
+# define GST_TIME_AS_MSECONDS(time) ((time) / G_GINT64_CONSTANT (1000000))
+#endif
+
 namespace gnash {
 namespace media {
 

=== modified file 'libmedia/gst/MediaParserGst.cpp'
--- a/libmedia/gst/MediaParserGst.cpp   2008-10-05 00:08:38 +0000
+++ b/libmedia/gst/MediaParserGst.cpp   2008-10-06 09:59:04 +0000
@@ -23,8 +23,7 @@
 #include "log.h"
 #include "IOChannel.h"
 
-
-
+#include "GstUtil.h" // for GST_TIME_AS_MSECONDS
 #include "swfdec_codec_gst.h"
 #include <iostream>
 #include <fstream>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]