diff --git a/gst-sdk/tutorials/playback-tutorial-3.c b/gst-sdk/tutorials/playback-tutorial-3.c index a59390a71e..e0bfd50e85 100644 --- a/gst-sdk/tutorials/playback-tutorial-3.c +++ b/gst-sdk/tutorials/playback-tutorial-3.c @@ -14,14 +14,14 @@ typedef struct _CustomData { GMainLoop *loop; gint buffering_level; } CustomData; - -static void got_location (GstObject *gstobject, GstObject *prop_object, GParamSpec *prop, gpointer data) { - gchar *location; - g_object_get (G_OBJECT (prop_object), "temp-location", &location, NULL); - g_print ("Temporary file: %s\n", location); - /* Uncomment this line to keep the temporary file after the program exits */ - /* g_object_set (G_OBJECT (prop_object), "temp-remove", FALSE, NULL); */ -} + +static void got_location (GstObject *gstobject, GstObject *prop_object, GParamSpec *prop, gpointer data) { + gchar *location; + g_object_get (G_OBJECT (prop_object), "temp-location", &location, NULL); + g_print ("Temporary file: %s\n", location); + /* Uncomment this line to keep the temporary file after the program exits */ + /* g_object_set (G_OBJECT (prop_object), "temp-remove", FALSE, NULL); */ +} static void cb_message (GstBus *bus, GstMessage *msg, CustomData *data) { @@ -153,7 +153,7 @@ int main(int argc, char *argv[]) { data.pipeline = pipeline; gst_bus_add_signal_watch (bus); - g_signal_connect (bus, "message", G_CALLBACK (cb_message), &data); + g_signal_connect (bus, "message", G_CALLBACK (cb_message), &data); g_signal_connect (pipeline, "deep-notify::temp-location", G_CALLBACK (got_location), NULL); /* Register a function that GLib will call every second */