Usage examples tls-interaction property for rtspsrc and souphttpsrc
enthusiastic geek
enthusiasticgeek at gmail.com
Thu Oct 5 11:34:16 UTC 2017
@Mandar Joshi
I get errors. I copied both files to /home/enthusiasticgeek/gstreamer folder
*g++ -g rtsp_client.c surveillance-tls-interaction.c -o rtsp_client
-I/home/enthusiasticgeek/gstreamer `pkg-config gstreamer-controller-1.0
gstreamer-plugins-base-1.0 gstreamer-base-1.0 gstreamer-1.0
gstreamer-rtsp-1.0 gstreamer-rtsp-server-1.0 --libs --cflags`*
surveillance-tls-interaction.c:38:87: error: expected ‘,’ or ‘...’ before
‘class’
static void surveillance_tls_interaction_class_init
(SurveillanceTlsInteractionClass *class)
^
In file included from /usr/include/glib-2.0/gobject/gobject.h:24:0,
from /usr/include/glib-2.0/gobject/gbinding.h:29,
from /usr/include/glib-2.0/glib-object.h:23,
from surveillance-tls-interaction.h:4,
from surveillance-tls-interaction.c:1:
surveillance-tls-interaction.c: In function ‘void
surveillance_tls_interaction_class_init(SurveillanceTlsInteractionClass*)’:
surveillance-tls-interaction.c:40:65: error: expected primary-expression
before ‘class’
GTlsInteractionClass *object_class = G_TLS_INTERACTION_CLASS (class);
^
/usr/include/glib-2.0/gobject/gtype.h:2209:51: note: in definition of macro
‘_G_TYPE_CCC’
((ct*) g_type_check_class_cast ((GTypeClass*) cp, gt))
^
/usr/include/glib-2.0/gio/gtlsinteraction.h:34:41: note: in expansion of
macro ‘G_TYPE_CHECK_CLASS_CAST’
#define G_TLS_INTERACTION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k),
G_TYPE_TLS_INTERACTION, GTlsInteractionClass))
^
surveillance-tls-interaction.c:40:40: note: in expansion of macro
‘G_TLS_INTERACTION_CLASS’
GTlsInteractionClass *object_class = G_TLS_INTERACTION_CLASS (class);
^
surveillance-tls-interaction.c:40:65: error: expected ‘)’ before ‘class’
GTlsInteractionClass *object_class = G_TLS_INTERACTION_CLASS (class);
^
/usr/include/glib-2.0/gobject/gtype.h:2209:51: note: in definition of macro
‘_G_TYPE_CCC’
((ct*) g_type_check_class_cast ((GTypeClass*) cp, gt))
^
/usr/include/glib-2.0/gio/gtlsinteraction.h:34:41: note: in expansion of
macro ‘G_TYPE_CHECK_CLASS_CAST’
#define G_TLS_INTERACTION_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k),
G_TYPE_TLS_INTERACTION, GTlsInteractionClass))
^
surveillance-tls-interaction.c:40:40: note: in expansion of macro
‘G_TLS_INTERACTION_CLASS’
GTlsInteractionClass *object_class = G_TLS_INTERACTION_CLASS (class);
^
surveillance-tls-interaction.c:40:71: error: expected ‘)’ before ‘;’ token
GTlsInteractionClass *object_class = G_TLS_INTERACTION_CLASS (class);
^
surveillance-tls-interaction.c:40:71: error: expected ‘)’ before ‘;’ token
surveillance-tls-interaction.c:40:71: error: expected ‘)’ before ‘;’ token
surveillance-tls-interaction.c:40:71: error: expected ‘)’ before ‘;’ token
surveillance-tls-interaction.c: In function ‘SurveillanceTlsInteraction*
surveillance_tls_interaction_new(GTlsCertificate*, GTlsCertificate*)’:
surveillance-tls-interaction.c:45:58: error: invalid conversion from
‘gpointer {aka void*}’ to ‘SurveillanceTlsInteraction* {aka
_SurveillanceTlsInteraction*}’ [-fpermissive]
SurveillanceTlsInteraction *interaction = g_object_new
(SURVEILLANCE_TLS_INTERACTION, NULL);
^
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list