update for bus api changes

This commit is contained in:
Wim Taymans 2012-06-20 12:31:01 +02:00
parent 30d3dfee36
commit d1b0ff6c06
3 changed files with 3 additions and 3 deletions

View file

@ -73,7 +73,7 @@ process_file (const gchar * file, gboolean push_mode, gint repeat,
/* kids, don't use a sync handler for this at home, really; we do because
* we just want to abort and nothing else */
gst_bus_set_sync_handler (bus, error_cb, (gpointer) file);
gst_bus_set_sync_handler (bus, error_cb, (gpointer) file, NULL);
src = gst_element_factory_make ("filesrc", "filesrc");
fail_unless (src != NULL, "Failed to create 'filesrc' element!");

View file

@ -66,7 +66,7 @@ mux_pcm_audio (guint num_buffers, guint repeat)
/* kids, don't use a sync handler for this at home, really; we do because
* we just want to abort and nothing else */
gst_bus_set_sync_handler (GST_ELEMENT_BUS (pipeline), error_cb, NULL);
gst_bus_set_sync_handler (GST_ELEMENT_BUS (pipeline), error_cb, NULL, NULL);
src = gst_element_factory_make ("audiotestsrc", "audiotestsrc");
fail_unless (src != NULL, "Failed to create 'audiotestsrc' element!");

View file

@ -56,7 +56,7 @@ read_tags_from_file (const gchar * file, gboolean push_mode)
/* kids, don't use a sync handler for this at home, really; we do because
* we just want to abort and nothing else */
gst_bus_set_sync_handler (bus, error_cb, (gpointer) file);
gst_bus_set_sync_handler (bus, error_cb, (gpointer) file, NULL);
src = gst_element_factory_make ("filesrc", "filesrc");
fail_unless (src != NULL, "Failed to create 'filesrc' element!");