Commit 2a0f8bf1 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

control/testapi.c: Nicer log() output.

parent 3a90c05e
......@@ -211,19 +211,19 @@ static void test_events (const char ** argv, int argc)
em = libvlc_media_instance_event_manager (mi, &ex);
log ("Testing attaching to Media Instance\n");
log ("+ Testing attaching to Media Instance\n");
for (i = 0; i < mi_events_len; i++) {
libvlc_event_attach (em, mi_events[i], test_events_dummy_callback, &callback_was_called, &ex);
catch ();
}
log ("Testing event reception\n");
log ("+ Testing event reception\n");
for (i = 0; i < mi_events_len; i++)
test_event_type_reception (em, mi_events[i], &callback_was_called);
log ("Testing event detaching while in the event callback\n");
log ("+ Testing event detaching while in the event callback\n");
libvlc_event_t event;
event.type = mi_events[mi_events_len-1];
......@@ -245,7 +245,8 @@ static void test_events (const char ** argv, int argc)
libvlc_event_detach (em, mi_events[i], test_events_callback_and_detach, &callback_was_called, &ex);
catch ();
/* Detach the other events */
log ("+ Testing regular detach()\n");
for (i = 0; i < mi_events_len - 1; i++) {
libvlc_event_detach (em, mi_events[i], test_events_dummy_callback, &callback_was_called, &ex);
catch ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment