mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
Corrected macro in medi-info-priv.h so that it follows ISO standards, and removed broken return from void function in...
Original commit message from CVS: Corrected macro in medi-info-priv.h so that it follows ISO standards, and removed broken return from void function in navigation.c
This commit is contained in:
parent
595cbc2d05
commit
dce62eff63
3 changed files with 11 additions and 2 deletions
|
@ -68,7 +68,7 @@ gst_navigation_send_event (GstNavigation *navigation, GstCaps *caps)
|
||||||
GstNavigationClass *klass = GST_NAVIGATION_GET_CLASS (navigation);
|
GstNavigationClass *klass = GST_NAVIGATION_GET_CLASS (navigation);
|
||||||
|
|
||||||
if (klass->send_event) {
|
if (klass->send_event) {
|
||||||
return klass->send_event (navigation, caps);
|
klass->send_event (navigation, caps);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,9 +32,18 @@ static gboolean _gmi_debug = TRUE;
|
||||||
static gboolean _gmi_debug = FALSE;
|
static gboolean _gmi_debug = FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef G_HAVE_ISO_VARARGS
|
||||||
|
|
||||||
|
#define GMI_DEBUG(...) \
|
||||||
|
{ if (_gmi_debug) { g_print ( __VA_ARGS__ ); }}
|
||||||
|
|
||||||
|
#elif defined(G_HAVE_GNUC_VARARGS)
|
||||||
|
|
||||||
#define GMI_DEBUG(format, args...) \
|
#define GMI_DEBUG(format, args...) \
|
||||||
{ if (_gmi_debug) { g_print ( format , ## args ); }}
|
{ if (_gmi_debug) { g_print ( format , ## args ); }}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* state machine enum; FIXME: can we move this to priv.c ? */
|
/* state machine enum; FIXME: can we move this to priv.c ? */
|
||||||
typedef enum
|
typedef enum
|
||||||
|
|
|
@ -68,7 +68,7 @@ gst_navigation_send_event (GstNavigation *navigation, GstCaps *caps)
|
||||||
GstNavigationClass *klass = GST_NAVIGATION_GET_CLASS (navigation);
|
GstNavigationClass *klass = GST_NAVIGATION_GET_CLASS (navigation);
|
||||||
|
|
||||||
if (klass->send_event) {
|
if (klass->send_event) {
|
||||||
return klass->send_event (navigation, caps);
|
klass->send_event (navigation, caps);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue