diff -r b81aea41900f -r 73c5aaff98a9 gst-plugins-mythtv/src/gstmythtvsrc.c --- a/gst-plugins-mythtv/src/gstmythtvsrc.c Fri Apr 13 21:03:50 2007 +0100 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.c Mon Apr 16 16:01:17 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 );