# HG changeset patch # User renatofilho # Date 1174675327 0 # Node ID b17cf9627ade7009a6c6a8996299d33a597f0d9d # Parent d6603c86582f512357be82c192ea355fdc23a417 [svn r450] fixed transcoder diff -r d6603c86582f -r b17cf9627ade gmyth/src/gmyth_livetv.c --- a/gmyth/src/gmyth_livetv.c Fri Mar 23 15:26:38 2007 +0000 +++ b/gmyth/src/gmyth_livetv.c Fri Mar 23 18:42:07 2007 +0000 @@ -467,7 +467,7 @@ } /* if - changes the channel number */ - sleep (6); /* FIXME: this is evil (tpm) */ + //sleep (6); /* FIXME: this is evil (tpm) */ } /* DEBUG message */ diff -r d6603c86582f -r b17cf9627ade gmyth/src/gmyth_transcoder.c --- a/gmyth/src/gmyth_transcoder.c Fri Mar 23 15:26:38 2007 +0000 +++ b/gmyth/src/gmyth_transcoder.c Fri Mar 23 18:42:07 2007 +0000 @@ -113,7 +113,8 @@ * @return gchar* with file or iso format * **/ -static gchar* gmyth_transcoder_date_change_format (gchar* date_s, int format) +static gchar* +gmyth_transcoder_date_change_format (gchar* date_s, int format) { if (date_s != NULL) { @@ -157,8 +158,9 @@ * @return void set's up the var to value * **/ -void gmyth_transcoder_set_output (GMythTranscoder* transcoder, - gboolean value, gchar* outputfile) +void +gmyth_transcoder_set_output (GMythTranscoder* transcoder, + gboolean value, const gchar* outputfile) { transcoder->output = value; transcoder->output_filename = g_strdup(outputfile); @@ -172,7 +174,8 @@ * @return void set's up the var to value * **/ -void gmyth_transcoder_set_filename (GMythTranscoder* transcoder, gchar* file) +void +gmyth_transcoder_set_filename (GMythTranscoder* transcoder, const gchar* file) { // fixme: if this method is called twice, memory will not be dealocated // one transcoder can be used only for one file request? @@ -203,7 +206,7 @@ **/ gint gmyth_transcoder_set_profile (GMythTranscoder* trans, - gchar* value) + const gchar* value) { g_return_val_if_fail (value != NULL, -1); diff -r d6603c86582f -r b17cf9627ade gmyth/src/gmyth_transcoder.h --- a/gmyth/src/gmyth_transcoder.h Fri Mar 23 15:26:38 2007 +0000 +++ b/gmyth/src/gmyth_transcoder.h Fri Mar 23 18:42:07 2007 +0000 @@ -90,14 +90,17 @@ GType gmyth_transcoder_type (void); -GMythTranscoder* gmyth_transcoder_new (GMythBackendInfo* backend_info); +GMythTranscoder* gmyth_transcoder_new (GMythBackendInfo* backend_info); +void gmyth_transcoder_set_output (GMythTranscoder* transcode, + gboolean value, const gchar* outputfile); +void gmyth_transcoder_set_filename (GMythTranscoder* transcode, const gchar* file); +gint gmyth_transcoder_set_profile (GMythTranscoder* trans, const gchar* value); +gboolean gmyth_transcoder_start (GMythTranscoder* trans); +gboolean gmyth_transcoder_pause (GMythTranscoder* trans); +gboolean gmyth_transcoder_resume (GMythTranscoder* trans); +gboolean gmyth_transcoder_cancel (GMythTranscoder* trans); +gint gmyth_transcoder_get_progress (GMythTranscoder* trans); -void gmyth_transcoder_set_output (GMythTranscoder* transcode, - gboolean value, gchar* outputfile); - -void gmyth_transcoder_set_filename (GMythTranscoder* transcode, gchar* file); - -gint gmyth_transcoder_set_profile (GMythTranscoder* trans, gchar* value); G_END_DECLS