/* first construct payload, since we need the length */
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_UNKNOWN:
- g_warning ("Unknown event, ignoring");
+ GST_WARNING ("Unknown event, ignoring");
*length = 0;
g_free (h);
return FALSE;
case GST_EVENT_QOS:
case GST_EVENT_NAVIGATION:
case GST_EVENT_TAG:
- g_warning ("Unhandled event type %d, ignoring", GST_EVENT_TYPE (event));
+ GST_WARNING ("Unhandled event type %d, ignoring", GST_EVENT_TYPE (event));
+ *length = 0;
+ g_free (h);
return FALSE;
default:
- g_warning ("Unknown event type %d, ignoring", GST_EVENT_TYPE (event));
+ GST_WARNING ("Unknown event type %d, ignoring", GST_EVENT_TYPE (event));
*length = 0;
g_free (h);
return FALSE;
type = GST_DP_HEADER_PAYLOAD_TYPE (header) - GST_DP_PAYLOAD_EVENT_NONE;
switch (type) {
case GST_EVENT_UNKNOWN:
- g_warning ("Unknown event, ignoring");
+ GST_WARNING ("Unknown event, ignoring");
return FALSE;
case GST_EVENT_EOS:
case GST_EVENT_FLUSH_START:
case GST_EVENT_QOS:
case GST_EVENT_NAVIGATION:
case GST_EVENT_TAG:
- g_warning ("Unhandled event type %d, ignoring", GST_EVENT_TYPE (event));
+ GST_WARNING ("Unhandled event type %d, ignoring", type);
return FALSE;
default:
- g_warning ("Unknown event type %d, ignoring", GST_EVENT_TYPE (event));
+ GST_WARNING ("Unknown event type %d, ignoring", type);
return FALSE;
}