gst-plugins-base: {audio, video}info: Add GST_TYPE_{AUDIO, VIDEO}_INFO macros

Nicolas Dufresne nicolas.dufresne at collabora.com
Mon Jul 6 05:10:10 PDT 2015


New macro, no doc ?

Le lundi 06 juillet 2015 à 02:54 -0700, Sebastian Dröge a écrit :
> Module: gst-plugins-base
> Branch: master
> Commit: b495dfa5e6249f231ffbc4b0fa3e6778081ecc83
> URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins
> -base/commit/?id=b495dfa5e6249f231ffbc4b0fa3e6778081ecc83
> 
> Author: Sebastian Dröge <sebastian at centricular.com>
> Date:   Mon Jul  6 12:53:15 2015 +0300
> 
> {audio,video}info: Add GST_TYPE_{AUDIO,VIDEO}_INFO macros
> 
> ---
> 
>  gst-libs/gst/audio/audio-info.h |    3 ++-
>  gst-libs/gst/video/video-info.h |    1 +
>  2 files changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/gst-libs/gst/audio/audio-info.h b/gst
> -libs/gst/audio/audio-info.h
> index 384ff83..7e271af 100644
> --- a/gst-libs/gst/audio/audio-info.h
> +++ b/gst-libs/gst/audio/audio-info.h
> @@ -84,7 +84,8 @@ struct _GstAudioInfo {
>    gpointer _gst_reserved[GST_PADDING];
>  };
>  
> -GType gst_audio_info_get_type        (void);
> +#define GST_TYPE_AUDIO_INFO                 
>  (gst_audio_info_get_type ())
> +GType gst_audio_info_get_type                (void);
>  
>  #define GST_AUDIO_INFO_IS_VALID(i)           ((i)->finfo != NULL && 
> (i)->rate > 0 && (i)->channels > 0 && (i)->bpf > 0)
>  
> diff --git a/gst-libs/gst/video/video-info.h b/gst
> -libs/gst/video/video-info.h
> index 18a1d45..102328f 100644
> --- a/gst-libs/gst/video/video-info.h
> +++ b/gst-libs/gst/video/video-info.h
> @@ -287,6 +287,7 @@ struct _GstVideoInfo {
>    } ABI;
>  };
>  
> +#define GST_TYPE_VIDEO_INFO              (gst_video_info_get_type 
> ())
>  GType gst_video_info_get_type            (void);
>  
>  /* general info */
> 
> _______________________________________________
> gstreamer-commits mailing list
> gstreamer-commits at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-commits
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150706/3366c42d/attachment.sig>


More information about the gstreamer-devel mailing list