# HG changeset patch # User rosfran # Date 1176500474 -3600 # Node ID 3b459aedfce782969a96000244a565f2e38e8866 # Parent aaf53e3d0b262426e8281bbe610f4712e34e3a2b [svn r556] GMyth API changes. diff -r aaf53e3d0b26 -r 3b459aedfce7 gst-plugins-mythtv/src/gstmythtvsrc.c --- a/gst-plugins-mythtv/src/gstmythtvsrc.c Fri Apr 13 22:40:49 2007 +0100 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.c Fri Apr 13 22:41:14 2007 +0100 @@ -712,9 +712,14 @@ goto init_failed; } - if ( !gmyth_file_transfer_open( GMYTH_FILE_TRANSFER(src->file), src->spawn_livetv->uri != NULL ? - gmyth_uri_get_path(src->spawn_livetv->uri) : - src->spawn_livetv->proginfo->pathname->str ) ) + if ( gmyth_uri_is_local_file(gmyth_uri) ) + ret = gmyth_file_local_open( GMYTH_FILE_LOCAL(src->file) ); + else + ret = gmyth_file_transfer_open( GMYTH_FILE_TRANSFER(src->file), src->spawn_livetv->uri != NULL ? + gmyth_uri_get_path(src->spawn_livetv->uri) : + src->spawn_livetv->proginfo->pathname->str ); + + if ( !ret ) { GST_INFO_OBJECT (src, "Error: couldn't open the FileTransfer from LiveTV source!" ); g_object_unref( src->file );