summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2019-07-22 13:01:42 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2019-07-22 17:40:50 +0200
commitf6d3e145d7642aae0e6dac292d910149be296e08 (patch)
tree05dd5fb4b1dfa077038ae59d0529719d6fb18ce6 /avmedia
parentd1d9a96337abb7ae40bbd2660ea4d5933b09a001 (diff)
avmedia: Drop 'wrap_*' functions
Just call the corresponding GStreamer functions directly. The wrapper functions are pointless since commit 6b911ae9eb9484bebbdc1323210020486f5ef33f ("Drop support for gstreamer-0.10"). Change-Id: I2963bd25a83632f4e693a1691180790452edffda Reviewed-on: https://gerrit.libreoffice.org/76116 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/gstreamer/gstplayer.cxx16
1 files changed, 2 insertions, 14 deletions
diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx
index 111622cbac9c..1a2e2e966add 100644
--- a/avmedia/source/gstreamer/gstplayer.cxx
+++ b/avmedia/source/gstreamer/gstplayer.cxx
@@ -412,18 +412,6 @@ void Player::processMessage( GstMessage *message )
}
}
-
-static gboolean wrap_element_query_position (GstElement *element, GstFormat format, gint64 *cur)
-{
- return gst_element_query_position( element, format, cur );
-}
-
-
-static gboolean wrap_element_query_duration (GstElement *element, GstFormat format, gint64 *duration)
-{
- return gst_element_query_duration( element, format, duration );
-}
-
#define LCL_WAYLAND_DISPLAY_HANDLE_CONTEXT_TYPE "GstWaylandDisplayHandleContextType"
static gboolean lcl_is_wayland_display_handle_need_context_message(GstMessage* msg)
@@ -495,7 +483,7 @@ GstBusSyncReply Player::processSyncMessage( GstMessage *message )
if( GST_MESSAGE_TYPE( message ) == GST_MESSAGE_ASYNC_DONE ) {
if( mnDuration == 0) {
gint64 gst_duration = 0;
- if( wrap_element_query_duration( mpPlaybin, GST_FORMAT_TIME, &gst_duration) )
+ if( gst_element_query_duration( mpPlaybin, GST_FORMAT_TIME, &gst_duration) )
mnDuration = gst_duration;
}
if( mnWidth == 0 ) {
@@ -712,7 +700,7 @@ double SAL_CALL Player::getMediaTime()
if( mpPlaybin ) {
// get current position in the stream
gint64 gst_position;
- if( wrap_element_query_position( mpPlaybin, GST_FORMAT_TIME, &gst_position ) )
+ if( gst_element_query_position( mpPlaybin, GST_FORMAT_TIME, &gst_position ) )
position = gst_position / GST_SECOND;
}