[svn r450] fixed transcoder trunk
authorrenatofilho
Fri Mar 23 18:42:07 2007 +0000 (2007-03-23)
branchtrunk
changeset 445b17cf9627ade
parent 444 d6603c86582f
child 446 d260ed30f4de
[svn r450] fixed transcoder
gmyth/src/gmyth_livetv.c
gmyth/src/gmyth_transcoder.c
gmyth/src/gmyth_transcoder.h
     1.1 --- a/gmyth/src/gmyth_livetv.c	Fri Mar 23 15:26:38 2007 +0000
     1.2 +++ b/gmyth/src/gmyth_livetv.c	Fri Mar 23 18:42:07 2007 +0000
     1.3 @@ -467,7 +467,7 @@
     1.4  	
     1.5  		} /* if - changes the channel number */
     1.6  		
     1.7 -    sleep (6);                  /* FIXME: this is evil (tpm) */
     1.8 +    //sleep (6);                  /* FIXME: this is evil (tpm) */
     1.9    }
    1.10    
    1.11    /* DEBUG message */  
     2.1 --- a/gmyth/src/gmyth_transcoder.c	Fri Mar 23 15:26:38 2007 +0000
     2.2 +++ b/gmyth/src/gmyth_transcoder.c	Fri Mar 23 18:42:07 2007 +0000
     2.3 @@ -113,7 +113,8 @@
     2.4   * @return gchar* with file or iso format
     2.5   *
     2.6   **/
     2.7 -static gchar* gmyth_transcoder_date_change_format (gchar* date_s, int format)
     2.8 +static gchar* 
     2.9 +gmyth_transcoder_date_change_format (gchar* date_s, int format)
    2.10  {
    2.11      if (date_s != NULL)
    2.12      {
    2.13 @@ -157,8 +158,9 @@
    2.14   * @return void set's up the var to value
    2.15   *
    2.16   **/
    2.17 -void gmyth_transcoder_set_output (GMythTranscoder* transcoder,
    2.18 -                                 gboolean value, gchar* outputfile)
    2.19 +void 
    2.20 +gmyth_transcoder_set_output (GMythTranscoder* transcoder,
    2.21 +                             gboolean value, const gchar* outputfile)
    2.22  {
    2.23      transcoder->output = value;
    2.24      transcoder->output_filename = g_strdup(outputfile);
    2.25 @@ -172,7 +174,8 @@
    2.26   * @return void set's up the var to value
    2.27   *
    2.28   **/
    2.29 -void gmyth_transcoder_set_filename (GMythTranscoder* transcoder, gchar* file)
    2.30 +void 
    2.31 +gmyth_transcoder_set_filename (GMythTranscoder* transcoder, const gchar* file)
    2.32  {
    2.33      // fixme: if this method is called twice, memory will not be dealocated
    2.34      // one transcoder can be used only for one file request?
    2.35 @@ -203,7 +206,7 @@
    2.36   **/
    2.37  gint
    2.38  gmyth_transcoder_set_profile (GMythTranscoder* trans,
    2.39 -                                  gchar* value)
    2.40 +                              const gchar* value)
    2.41  {
    2.42      g_return_val_if_fail (value != NULL, -1);
    2.43  
     3.1 --- a/gmyth/src/gmyth_transcoder.h	Fri Mar 23 15:26:38 2007 +0000
     3.2 +++ b/gmyth/src/gmyth_transcoder.h	Fri Mar 23 18:42:07 2007 +0000
     3.3 @@ -90,14 +90,17 @@
     3.4  
     3.5  GType gmyth_transcoder_type (void);
     3.6  
     3.7 -GMythTranscoder* gmyth_transcoder_new (GMythBackendInfo* backend_info);
     3.8 +GMythTranscoder*    gmyth_transcoder_new            (GMythBackendInfo* backend_info);
     3.9 +void                gmyth_transcoder_set_output     (GMythTranscoder* transcode,
    3.10 +                                                     gboolean value, const gchar* outputfile);
    3.11 +void                gmyth_transcoder_set_filename   (GMythTranscoder* transcode, const gchar* file);
    3.12 +gint                gmyth_transcoder_set_profile    (GMythTranscoder* trans, const gchar* value);
    3.13 +gboolean            gmyth_transcoder_start          (GMythTranscoder* trans);
    3.14 +gboolean            gmyth_transcoder_pause          (GMythTranscoder* trans);
    3.15 +gboolean            gmyth_transcoder_resume         (GMythTranscoder* trans);
    3.16 +gboolean            gmyth_transcoder_cancel         (GMythTranscoder* trans);
    3.17 +gint                gmyth_transcoder_get_progress   (GMythTranscoder* trans);
    3.18  
    3.19 -void gmyth_transcoder_set_output (GMythTranscoder* transcode,
    3.20 -                                 gboolean value, gchar* outputfile);
    3.21 -
    3.22 -void gmyth_transcoder_set_filename (GMythTranscoder* transcode, gchar* file);
    3.23 -
    3.24 -gint gmyth_transcoder_set_profile (GMythTranscoder* trans, gchar* value);
    3.25  
    3.26  G_END_DECLS
    3.27