Commit graph

24 commits

Author SHA1 Message Date
Guillaume Desmottes
10dd3a2177 playback/player: Call gst_deinit() in all applications at the end of main()
Needed to be able to track leaks using valgrind or the leaks tracer.
2016-07-21 20:32:43 +03:00
Sebastian Dröge
addb63586b playback/player: 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:59:40 +02:00
Jimmy Ohn
09864feff4 playback/player: gst-play: trivial cleanup 2015-10-04 18:54:54 +01:00
Jimmy Ohn
c454b2914e playback/player: gst-play: Check if the stream list is empty in print_all_stream_info
Add a check condition if the stream list is empty before using it.
2015-09-15 17:49:22 +02:00
Sebastian Dröge
371f4ec378 playback/player: gst-play: Remove useless variable initializations
They are set to something in the next line anyway.
2015-08-27 10:54:52 +03:00
Jimmy Ohn
50099a3aa1 playback/player: gst-play: Check if the stream list is empty in print_all_stream_info before using it 2015-08-27 10:54:11 +03:00
Sebastian Dröge
e2581982a6 playback/player: gst-play: Fix leak of GError and GOptionContext on parsing errors 2015-08-20 10:50:30 +03:00
Sebastian Dröge
a8f8d1b032 playback/player: player: Refactor video rendering API
There's a GstPlayerVideoRenderer interface now, which defines how video
rendering happens in GstPlayer. Included is an implementation for the
GstVideoOverlay interface, and inside the GTK example application one for
gtksink/gtkglsink.
2015-08-14 17:13:39 +02:00
Sebastian Dröge
6ed6b58929 playback/player: player: Abstract the signal emission dispatching to a new interface
This allows to implement signal dispatching to other event loop systems than
GLib without having direct GLib support in the base GstPlayer class. A
implementation for the GLib main context is provided and used in the
applications and tests.
2015-08-12 18:13:31 +02:00
Brijesh Singh
eb42154608 playback/player: gst-play: add playlist loop command line option 2015-05-08 15:50:07 +02:00
Sebastian Dröge
544c51fe11 playback/player: Fix indention 2015-05-06 10:58:27 +02:00
Brijesh Singh
ef751e3dfd playback/player: gst-play: display global taglist 2015-05-06 10:55:08 +02:00
Sebastian Dröge
3180177fc7 playback/player: player: Rename some more functions for consistency 2015-04-25 19:37:39 +02:00
Sebastian Dröge
2cfa987d89 playback/player: player: Rename gst_player_subtitle_get_language() to gst_player_subtitle_info_get_language() 2015-04-25 19:30:55 +02:00
Sebastian Dröge
da76b893c7 playback/player: gst-play: Add copyright notice for Brijesh Singh 2015-04-25 14:32:52 +02:00
Brijesh Singh
34c7b45906 playback/player: player: Add media information API
https://github.com/sdroege/gst-player/pull/21
2015-04-25 14:16:08 +02:00
Sebastian Dröge
7ca4b495c2 playback/player: gst-play: Fix compiler warning
gst-play.c:89:11: error: comparison of unsigned expression >= 0 is always true
      [-Werror,-Wtautological-compare]
  if (pos >= 0 && dur > 0) {
      ~~~ ^  ~
2015-04-25 14:03:12 +02:00
Sebastian Dröge
d828730591 playback/player: Don't skip to next track immediately in gst-play when seeking after the duration
Instead wait for end-of-stream for switching.
2015-02-08 11:52:11 +01:00
Sebastian Dröge
ae46c50138 playback/player: Make state handling more robust and notify the application about our states
The application now will get one of 4 states via a signal:
STOPPED: After EOS, error and when explicitely stopped
BUFFERING: When moving to the lower states, or we get buffering messages,
           also when seeking.
PAUSED and PLAYING: When having reached that state and it's our target

Also we now always first go to PAUSED state before we seek, and also before we
go to PLAYING. This allows us to deterministically change states and makes
everything a bit more robust.

As a side-effect, get rid of the is-playing property. Applications can now get
this from the corresponding signal if they need to know.

Additionally now notify the application about the buffering percentage.

Also fix a few bugs related to state handling and buffering.
2015-02-08 11:52:10 +01:00
Sebastian Dröge
e85d26115a playback/player: Move dispatch-to-main-context out of the constructor and make it a normal property 2014-08-03 16:08:14 +02:00
Sebastian Dröge
4b9da857c0 playback/player: Add a single-include header 2014-08-03 12:47:27 +02:00
Sebastian Dröge
b34e62884c playback/player: Move library around into a proper directory 2014-08-02 20:33:38 +02:00
Sebastian Dröge
10eabda41b playback/player: Add debug logging 2014-07-28 12:08:12 +02:00
Sebastian Dröge
5c289ec20a playback/player: Port gst-play from gst-plugins-base to GstPlayer 2014-07-27 18:01:39 +02:00