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.
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; string_ value(" track/last- file-name" , &filename);
conf_get_
Then call function( filename) ;
your-new-
g_free(filename);
Use g_print("xxxx") as help to debug your code.
----
Please PM me (send a private message) if you need help.