Commit 03eea236 authored by Stefan Kost's avatar Stefan Kost Committed by Tim-Philipp Müller

discoverer: rename boolean getters for consistency

Rename _get_is_image() to _is_image() and _get_interlaced() to _is_interlaced().

https://bugzilla.gnome.org/show_bug.cgi?id=633311
parent 98c78892
......@@ -471,7 +471,7 @@ gst_discoverer_stream_info_get_stream_type_nick (GstDiscovererStreamInfo * info)
if (GST_IS_DISCOVERER_AUDIO_INFO (info))
return "audio";
if (GST_IS_DISCOVERER_VIDEO_INFO (info)) {
if (gst_discoverer_video_info_get_is_image ((GstDiscovererVideoInfo *)
if (gst_discoverer_video_info_is_image ((GstDiscovererVideoInfo *)
info))
return "video(image)";
else
......@@ -758,15 +758,20 @@ VIDEO_INFO_ACCESSOR_CODE (par_num, guint, 0);
VIDEO_INFO_ACCESSOR_CODE (par_denom, guint, 0);
/**
* gst_discoverer_video_info_get_interlaced:
* gst_discoverer_video_info_is_interlaced:
* @info: a #GstDiscovererVideoInfo
*
* Returns: %TRUE if the stream is interlaced, else %FALSE.
*
* Since 0.10.31
*/
gboolean
gst_discoverer_video_info_is_interlaced (const GstDiscovererVideoInfo * info)
{
g_return_val_if_fail (GST_IS_DISCOVERER_VIDEO_INFO (info), FALSE);
VIDEO_INFO_ACCESSOR_CODE (interlaced, gboolean, FALSE);
return info->interlaced;
}
/**
* gst_discoverer_video_info_get_bitrate:
......@@ -791,7 +796,7 @@ VIDEO_INFO_ACCESSOR_CODE (bitrate, guint, 0);
VIDEO_INFO_ACCESSOR_CODE (max_bitrate, guint, 0);
/**
* gst_discoverer_video_info_get_is_image:
* gst_discoverer_video_info_is_image:
* @info: a #GstDiscovererVideoInfo
*
* Returns: #TRUE if the video stream corresponds to an image (i.e. only contains
......@@ -799,8 +804,13 @@ VIDEO_INFO_ACCESSOR_CODE (max_bitrate, guint, 0);
*
* Since 0.10.31
*/
gboolean
gst_discoverer_video_info_is_image (const GstDiscovererVideoInfo * info)
{
g_return_val_if_fail (GST_IS_DISCOVERER_VIDEO_INFO (info), FALSE);
VIDEO_INFO_ACCESSOR_CODE (is_image, gboolean, FALSE);
return info->is_image;
}
/* GstDiscovererInfo */
......
......@@ -123,10 +123,10 @@ guint gst_discoverer_video_info_get_framerate_num(const GstDiscovererV
guint gst_discoverer_video_info_get_framerate_denom(const GstDiscovererVideoInfo* info);
guint gst_discoverer_video_info_get_par_num(const GstDiscovererVideoInfo* info);
guint gst_discoverer_video_info_get_par_denom(const GstDiscovererVideoInfo* info);
gboolean gst_discoverer_video_info_get_interlaced(const GstDiscovererVideoInfo* info);
gboolean gst_discoverer_video_info_is_interlaced(const GstDiscovererVideoInfo* info);
guint gst_discoverer_video_info_get_bitrate(const GstDiscovererVideoInfo* info);
guint gst_discoverer_video_info_get_max_bitrate(const GstDiscovererVideoInfo* info);
gboolean gst_discoverer_video_info_get_is_image(const GstDiscovererVideoInfo* info);
gboolean gst_discoverer_video_info_is_image(const GstDiscovererVideoInfo* info);
/**
* GstDiscovererResult:
......
......@@ -149,7 +149,7 @@ gst_stream_video_information_to_string (GstDiscovererStreamInfo * info,
gst_discoverer_video_info_get_par_denom (video_info));
my_g_string_append_printf (s, "Interlaced: %s\n",
gst_discoverer_video_info_get_interlaced (video_info) ? "true" : "false");
gst_discoverer_video_info_is_interlaced (video_info) ? "true" : "false");
my_g_string_append_printf (s, "Bitrate: %u\n",
gst_discoverer_video_info_get_bitrate (video_info));
......
......@@ -50,13 +50,13 @@ EXPORTS
gst_discoverer_video_info_get_framerate_denom
gst_discoverer_video_info_get_framerate_num
gst_discoverer_video_info_get_height
gst_discoverer_video_info_get_interlaced
gst_discoverer_video_info_get_is_image
gst_discoverer_video_info_get_max_bitrate
gst_discoverer_video_info_get_par_denom
gst_discoverer_video_info_get_par_num
gst_discoverer_video_info_get_type
gst_discoverer_video_info_get_width
gst_discoverer_video_info_is_image
gst_discoverer_video_info_is_interlaced
gst_install_plugins_async
gst_install_plugins_context_free
gst_install_plugins_context_get_type
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment