Thibault Saunier
78022a6e0c
docs: Port all docstring to gtk-doc markdown
2017-04-12 12:57:57 -03:00
Seungha Yang
e25da85a65
player: Make use of GstStreams API with playbin3
...
Allow use of playbin3 and GstStreams API by setting
the environment variable "GST_PLAYER_USE_PLAYBIN3"
https://bugzilla.gnome.org/show_bug.cgi?id=775487
2017-03-22 15:17:30 +02:00
Haihua Hu
79be2e8b7b
player: Fix setting of external subtitle URI
...
gst_player_set_uri_internal shouldn't free suburi which maybe set
by user to load external subtitle before start play. It just need
reset playbin's subutri property to NULL no matter if there was a
previous one or not.
https://bugzilla.gnome.org/show_bug.cgi?id=779453
2017-03-09 10:31:45 +02:00
Thibault Saunier
cea4346d84
meson: Build GIR files
2017-01-23 12:48:53 -03:00
Lyon Wang
b22fec8293
player: Add support for selecting a specific video sink
...
- Add overlay video renderer "video-sink" property, so that can be set
- In create_video_sink, it returns video sink instead of always NULL
- Add new renderer_new_with_sink() API to set video sink
https://bugzilla.gnome.org/show_bug.cgi?id=776490
2017-01-17 13:14:59 +02:00
Sebastian Dröge
9bd99d3670
player: Add missing documentation for deprecated functions
2017-01-17 13:09:55 +02:00
Lyon Wang
2609aaa48b
player: Add get video snapshot API
...
Add get video snapshot API:
gst_player_get_video_snapshot()
https://bugzilla.gnome.org/show_bug.cgi?id=773709
2017-01-17 13:09:55 +02:00
Sebastian Dröge
19ddd9efd2
player: Add deprecated compatibility functions for the audio/video/subtitle stream getters
2016-12-21 11:38:11 +02:00
Sebastian Dröge
00f9a21cd2
player: Move audio/video/subtitle stream list getters into the correct namespace
2016-12-21 11:32:52 +02:00
Lyon Wang
9294dc4ac7
player: Add get track number media info API
...
https://bugzilla.gnome.org/show_bug.cgi?id=773570
2016-12-21 11:31:09 +02:00
Arun Raghavan
6a0d53b767
player: Don't try to cache the GQuark for GST_PLAYER_ERROR
...
This is potentially racy (in the unlikely scenario that we get two
first-time calls to gst_player_error_quark() at the same time). This
should not impact anything in terms of performance since it's only on
the error path.
The call itself could just be inlined by making GST_PLAYER_ERROR be
defined to the g_quark_from_static_string() call, but this feels ugly
from an API perspective.
2016-12-08 11:22:38 +05:30
Lyon Wang
8d41d816a2
player: Add configuration for enabling accurate seeks
...
https://bugzilla.gnome.org/show_bug.cgi?id=773521
2016-11-01 19:49:52 +02:00
Sebastian Dröge
8ba57fb4bd
player: Cache duration and return cached duration
...
https://bugzilla.gnome.org/show_bug.cgi?id=771992
2016-11-01 19:36:40 +02:00
Sebastian Dröge
254db116a1
player: Remove Return documentation for function returning void
2016-09-30 13:42:06 +03:00
Sebastian Dröge
fa31ea7ac3
player: Only report the initial duration if the query was successful
2016-09-26 13:26:36 +03:00
Sebastian Dröge
ac6e2af62d
player: Remove some leftovers from external GstPlayer
2016-09-17 17:08:22 -04:00
Sebastian Dröge
79cab9f8b8
player: Remove boolean return from set_subtitle_uri()
...
It can't fail synchronously and is inconsistent with set_uri().
2016-09-15 13:15:51 +02:00
Sebastian Dröge
a036b7ef9f
player: Don't change state to PLAYING immediately if a seek is pending
...
We first have to finish the seek (in PAUSED) and move to PLAYING once
the seek is actually finished (unless a new one is pending then).
2016-09-14 18:07:55 +02:00
Julien Isorce
179c8f71fb
gstplayer: remove leftover update_interval api
...
old: gst_player_set_position_update_interval
new: gst_player_config_set_position_update_interval
https://bugzilla.gnome.org/show_bug.cgi?id=769144
2016-09-08 08:41:03 +01:00
Sebastian Dröge
a2c03f2b00
player: On redirects, remember the redirect URI separately and don't consider this an URI property change
...
The application does not know anything about the redirect, and changing its
URI internally will cause confusion.
Also don't reset the subtitle URI.
2016-08-24 14:16:23 +03:00
Sebastian Dröge
e416e79af8
player: Don't report spurious STOPPED state changes when doing transient changes there
2016-08-24 14:10:41 +03:00
Sebastian Dröge
c361907873
player: Ensure that rate is initialized to 1.0
2016-08-24 13:38:53 +03:00
Sebastian Dröge
c6d389c772
player: De-duplicate rate setting code and always use the property
2016-08-23 15:02:19 +03:00
Sebastian Dröge
fa8bfb3991
player: Protect setter/getter for the configuration with a mutex
2016-08-23 15:02:19 +03:00
Sebastian Dröge
a0f6105204
player: Move subtitle URI setter next to the uri setter
...
It's confusing to have them a couple of hundred lines apart.
2016-08-23 15:02:19 +03:00
Nirbheek Chauhan
42af2d66d8
Add support for Meson as alternative/parallel build system
...
https://github.com/mesonbuild/meson
With contributions from:
Tim-Philipp Müller <tim@centricular.com>
Matej Knopp <matej.knopp@gmail.com>
Jussi Pakkanen <jpakkane@gmail.com> (original port)
Highlights of the features provided are:
* Faster builds on Linux (~40-50% faster)
* The ability to build with MSVC on Windows
* Generate Visual Studio project files
* Generate XCode project files
* Much faster builds on Windows (on-par with Linux)
* Seriously fast configure and building on embedded
... and many more. For more details see:
http://blog.nirbheek.in/2016/05/gstreamer-and-meson-new-hope.html
http://blog.nirbheek.in/2016/07/building-and-developing-gstreamer-using.html
Building with Meson should work on both Linux and Windows, but may
need a few more tweaks on other operating systems.
2016-08-20 11:35:54 +01:00
Sebastian Dröge
aa1a663c8a
player: Add some 'const' to config getters
2016-07-25 13:06:46 +03:00
Sebastian Dröge
1f7d341d92
player: G-I annotation fixes
2016-07-25 13:06:36 +03:00
Guillaume Desmottes
0f692e202e
player: move 'position-update-interval' setting to the config struct
...
https://bugzilla.gnome.org/show_bug.cgi?id=769144
2016-07-25 13:03:20 +03:00
Guillaume Desmottes
6e39cef802
player: add API to change http user agent
...
Introducing a new 'config' API similar to GstBufferPoolConfig.
https://bugzilla.gnome.org/show_bug.cgi?id=765314
2016-07-25 13:02:35 +03:00
Sebastian Dröge
a40ecc1168
player: pause() should not inhibit signals but work exactly like play()
...
https://bugzilla.gnome.org/show_bug.cgi?id=766607#c23
2016-06-06 11:13:00 +03:00
Guillaume Desmottes
0467923415
player: inhibit signals after gst_player_stop() has been called
...
Also wait for the state change to STOP to have been announced before
destroying the player so it won't appear as leaked by leak detector
tools.
https://bugzilla.gnome.org/show_bug.cgi?id=766607
2016-05-30 12:43:22 +03:00
Havard Graff
45a832686b
player: use correct _NONE enum
...
https://bugzilla.gnome.org/show_bug.cgi?id=766973
2016-05-28 21:16:27 +01:00
Guillaume Desmottes
586509d486
player: fix suburi getter debug message
...
The property is a string, not a boolean.
https://bugzilla.gnome.org/show_bug.cgi?id=766607
2016-05-25 09:55:28 +03:00
Sebastian Dröge
3af9fd7322
player: Don't set subtitle URI directly but dispatch to the player thread
...
Otherwise we do state changes and everything in the application thread, which
might block and more important can cause reentrant signals.
https://bugzilla.gnome.org/show_bug.cgi?id=766607
2016-05-25 09:53:15 +03:00
Tim-Philipp Müller
db90f4686f
g-i: pass compiler env to g-ir-scanner
...
It's what introspection.mak does as well. Should
fix spurious build failures on gnome-continuous.
2016-05-24 00:55:11 +01:00
Arun Raghavan
18f8895f33
player: Fix documentation for gst_player_video_info_get_framerate()
...
Document out parameters and fix function name.
2016-05-23 17:17:55 +05:30
Sebastian Dröge
175e02ba7b
player: Add uri-loaded signal that is fired whenever a new URI is actually loaded
...
This allows knowing the "boundary" from which on all following signals are for
the new URI.
https://bugzilla.gnome.org/show_bug.cgi?id=766062
2016-05-15 15:12:21 +03:00
Sebastian Dröge
7acb1a35cb
player: Add required paths via pkg-config for gstreamer-base-1.0 and gstreamer-video-1.0 for gobject-introspection
...
The GstBase-1.0.gir and GstVideo-1.0.gir files are required by GstPlayer.
Uninstalled builds fail if these files cannot be found.
https://bugzilla.gnome.org/show_bug.cgi?id=765804
2016-04-29 15:15:30 +03:00
Barun Kumar Singh
bf43460018
player: Add audio-video-offset property and setter/getter API
...
https://bugzilla.gnome.org/show_bug.cgi?id=765315
2016-04-28 13:18:41 +03:00
Barun Kumar Singh
aa754f634c
player: Add support for multiview settings
...
https://bugzilla.gnome.org/show_bug.cgi?id=765302
2016-04-21 14:58:18 +03:00
Reynaldo H. Verdejo Pinochet
58465bc90f
Drop usage of 'overlayed' to mean 'overlaid'
2016-04-15 13:39:32 -07:00
Sebastian Dröge
10a9b78d40
player: Add is_live flag to the GstPlayerMediaInfo
...
https://bugzilla.gnome.org/show_bug.cgi?id=763126
2016-03-25 12:51:29 +02:00
Sebastian Dröge
18ac9d239e
player: Expose more GstVideoOverlay API in the GstPlayerVideoOverlayVideoRenderer
...
Expose the expose() and set_render_rectangle() methods. These are useful for
proper functioning of the video overlay in various situations and toolkits.
2016-02-22 12:54:05 +02:00
David Waring
1328a44a01
libs: player: use configured GST_PKG_CONFIG_PATH when invoking the introspection scanner
...
https://bugzilla.gnome.org/show_bug.cgi?id=761460
2016-02-02 17:52:23 +00:00
Tim-Philipp Müller
e317a350bc
libs: g-i: fix init section to avoid compiler warnings
...
..GstPlayer-1.0.c: In function ‘main’:
..GstPlayer-1.0.c:587:3: warning: implicit declaration of function ‘gst_init’
https://bugzilla.gnome.org/show_bug.cgi?id=760090
2016-01-19 08:40:35 +00:00
Sebastian Dröge
7f8d9d1df2
player: Only set the pipeline to PLAYING in play() if buffering>=100%
...
Otherwise the application can break the buffering logic by setting the
pipeline to PLAYING before we buffered enough.
2016-01-06 16:55:44 +02:00
Sebastian Dröge
b53972a5cb
player: Remove gst_player_new() and make gst_player_new_full() the normal constructor
...
In very few cases the simple version was actually needed and having the
parameters hidden by a _full() version caused application that actually needed
it to not use it.
2016-01-04 09:55:28 +02:00
Sebastian Dröge
0b2d698b1e
player: Import GstPlayer playback convenience API
...
Based on https://github.com/sdroege/gst-player
commit 9ce6ae0dbb8eeeefaf794cfae80e279a03cc598d
2015-12-23 09:54:37 +01:00