mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
playback/player: gtk-play: Fix compiler warning
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); ^
This commit is contained in:
parent
7396c221ed
commit
59d822fc2b
1 changed files with 2 additions and 2 deletions
|
@ -262,12 +262,12 @@ stream_info_get_string (GstPlayerStreamInfo * stream, gint type, gboolean label)
|
|||
}
|
||||
case VIDEO_INFO_PAR:
|
||||
{
|
||||
gint par_d, par_n;
|
||||
guint par_d, par_n;
|
||||
gchar *buffer;
|
||||
GstPlayerVideoInfo *video = (GstPlayerVideoInfo *) stream;
|
||||
|
||||
gst_player_video_info_get_pixel_aspect_ratio (video, &par_n, &par_d);
|
||||
buffer = g_strdup_printf ("%s%d:%d", label ? "pixel-aspect-ratio : " :
|
||||
buffer = g_strdup_printf ("%s%u:%u", label ? "pixel-aspect-ratio : " :
|
||||
"", par_n, par_d);
|
||||
return buffer;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue