diff options
author | Parthasarathi Susarla <partha.susarla@collabora.co.uk> | 2011-02-24 20:10:03 +1100 |
---|---|---|
committer | Parthasarathi Susarla <partha.susarla@collabora.co.uk> | 2011-02-24 20:10:03 +1100 |
commit | cead8dafd2919176e2495e6bad981b8152d57ba8 (patch) | |
tree | 76d1e858442bc897b8b659ac6582f95097fd99af | |
parent | 3ab68a6ed2f57455370b0b64b158ba188d0a74d8 (diff) | |
download | gupnp-dlna-cead8dafd2919176e2495e6bad981b8152d57ba8.tar.gz |
Fix return types for getter functions
The getter functions for GUPnPDLNAProfile to get video/audio/container caps
need to return const.
-rw-r--r-- | libgupnp-dlna/gupnp-dlna-profile.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libgupnp-dlna/gupnp-dlna-profile.c b/libgupnp-dlna/gupnp-dlna-profile.c index a66fe34..b7dbc55 100644 --- a/libgupnp-dlna/gupnp-dlna-profile.c +++ b/libgupnp-dlna/gupnp-dlna-profile.c @@ -20,6 +20,7 @@ */ #include "gupnp-dlna-profile.h" +#include "gupnp-dlna-profile-private.h" #include <gst/gstminiobject.h> /** @@ -204,21 +205,21 @@ gupnp_dlna_profile_init (GUPnPDLNAProfile *self) { } -GstCaps * +const GstCaps * gupnp_dlna_profile_get_container_caps (GUPnPDLNAProfile *self) { GUPnPDLNAProfilePrivate *priv = GET_PRIVATE (self); return priv->container_caps; } -GstCaps * +const GstCaps * gupnp_dlna_profile_get_video_caps (GUPnPDLNAProfile *self) { GUPnPDLNAProfilePrivate *priv = GET_PRIVATE (self); return priv->video_caps; } -GstCaps * +const GstCaps * gupnp_dlna_profile_get_audio_caps (GUPnPDLNAProfile *self) { GUPnPDLNAProfilePrivate *priv = GET_PRIVATE (self); |