Comment 18 for bug 1610508

Revision history for this message
moma (osmoma) wrote :

Re-hi,

0) Create a new c-function in the gst-recorder.c module that takes a filename (of the recorded file) as argument. See the previous examples and postings in this thread.

You must check if the filename is valid, it exists, its size is > 0, etc.

If the file is not valid: then bail out.
If the file is valid: Save it to the xbel recent list. Fill the GtkRecentData structure with correct values.

Also check if the file has already been added to the recent-files list. Do not add duplicates.
----

1) Call your new function from rec_stop_recording(...) function.
Add it to the very end.

You can obtain the recorded filename by:

gchar *filename = NULL;
conf_get_string_value("track/last-file-name", &filename);

Then call
your-new-function(filename);
g_free(filename);

Use g_print("xxxx") as help to debug your code.
----
Please PM me (send a private message) if you need help.