summaryrefslogtreecommitdiff
path: root/src/include/mm_player_utils.h
diff options
context:
space:
mode:
authorXavier Roche <xavrock.os@gmail.com>2013-05-02 15:23:51 +0200
committerRusty Lynch <rusty.lynch@intel.com>2013-05-18 11:41:46 -0700
commited9cdeb6f4cb978f32440fd00fdc1a559b622270 (patch)
tree26c0abbad17749d6afdca4a7ebb91058c9321fe7 /src/include/mm_player_utils.h
parent23314ea0221ab2fdf1624c8cf1992f8cecd0b602 (diff)
downloadlibmm-player-ed9cdeb6f4cb978f32440fd00fdc1a559b622270.tar.gz
libmm-player-ed9cdeb6f4cb978f32440fd00fdc1a559b622270.tar.bz2
libmm-player-ed9cdeb6f4cb978f32440fd00fdc1a559b622270.zip
Fix Gstreamer 0.10-1.0 compliance
Diffstat (limited to 'src/include/mm_player_utils.h')
-rw-r--r--src/include/mm_player_utils.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/mm_player_utils.h b/src/include/mm_player_utils.h
index 480e1b8..89be772 100644
--- a/src/include/mm_player_utils.h
+++ b/src/include/mm_player_utils.h
@@ -24,6 +24,9 @@
#include <glib.h>
#include <gst/gst.h>
+#include <stdint.h>
+#include <inttypes.h>
+
#include <mm_player_ini.h>
#include <mm_types.h>
#include <mm_error.h>
@@ -180,6 +183,7 @@ gboolean __util_gst_pad_probe(GstPad *pad, GstBuffer *buffer, gpointer u_data);
/* messages are treated as warnings bcz those code should not be checked in.
* and no error handling will supported for same manner.
*/
+#ifndef GST_API_VERSION_1
#define MMPLAYER_ADD_PROBE(x_pad, x_flag) \
debug_warning("adding pad probe\n"); \
if ( ! gst_pad_add_buffer_probe(x_pad, \
@@ -188,6 +192,16 @@ if ( ! gst_pad_add_buffer_probe(x_pad, \
{ \
debug_error("failed to add pad probe\n"); \
}
+#else
+#define MMPLAYER_ADD_PROBE(x_pad, x_flag) \
+debug_warning("adding pad probe\n"); \
+if ( ! gst_pad_add_probe(x_pad, \
+ __util_gst_pad_probe, \
+ (gpointer)x_flag), NULL ) \
+{ \
+ debug_error("failed to add pad probe\n"); \
+}
+#endif
/* generating dot */