Window title is set from media-info-updated signal hence
updating the window title in resume button callback will override
the title set from media-info-updated signal.
We maintain two drawing widgets, image and video. Cover art is drawn in
image widget and video is rendered in video widget. Based on the following
conditions we show either image or video widget:
- if media info does not have active video stream then hide video widget
and show image widget.
- if media info contains active video stream then show video widget and
hide the image widget.
gtk-play.c:269:60: warning: passing 'gint *' (aka 'int *') to parameter of type 'guint *' (aka 'unsigned int *') converts between pointers to integer types
with different sign [-Wpointer-sign]
gst_player_video_info_get_pixel_aspect_ratio (video, &par_n, &par_d);
^~~~~~
../lib/gst/player/gstplayer-media-info.h:92:57: note: passing argument to parameter 'par_n' here
(const GstPlayerVideoInfo* info, guint *par_n, guint *par_d);
^
gtk-play.c:269:68: warning: passing 'gint *' (aka 'int *') to parameter of type 'guint *' (aka 'unsigned int *') converts between pointers to integer types
with different sign [-Wpointer-sign]
gst_player_video_info_get_pixel_aspect_ratio (video, &par_n, &par_d);
^~~~~~
../lib/gst/player/gstplayer-media-info.h:92:71: note: passing argument to parameter 'par_d' here
(const GstPlayerVideoInfo* info, guint *par_n, guint *par_d);
^
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.
This patch contains a few improvements to the gtk-player:
* Uses unified play/pause button.
* Adds a Skip Previous/Next button.
* Volume control
* Takes multiple files/uri's as arguments.
* Switches to the next track (if any) when the current track
reaches and end.
https://github.com/sdroege/gst-player/pull/1