gst-plugins-mythtv/src/gstmythtvsrc.c
branchtrunk
changeset 551 3b459aedfce7
parent 548 b81aea41900f
child 553 424babd6b788
     1.1 --- a/gst-plugins-mythtv/src/gstmythtvsrc.c	Fri Apr 13 21:03:50 2007 +0100
     1.2 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.c	Fri Apr 13 22:41:14 2007 +0100
     1.3 @@ -712,9 +712,14 @@
     1.4        goto init_failed;
     1.5      }
     1.6      
     1.7 -		if ( !gmyth_file_transfer_open( GMYTH_FILE_TRANSFER(src->file), src->spawn_livetv->uri != NULL ? 
     1.8 -							gmyth_uri_get_path(src->spawn_livetv->uri) : 
     1.9 -							src->spawn_livetv->proginfo->pathname->str ) )
    1.10 +    if ( gmyth_uri_is_local_file(gmyth_uri) )
    1.11 +      ret = gmyth_file_local_open( GMYTH_FILE_LOCAL(src->file) );
    1.12 +    else
    1.13 +      ret = gmyth_file_transfer_open( GMYTH_FILE_TRANSFER(src->file), src->spawn_livetv->uri != NULL ? 
    1.14 +                gmyth_uri_get_path(src->spawn_livetv->uri) : 
    1.15 +                src->spawn_livetv->proginfo->pathname->str );
    1.16 +
    1.17 +		if ( !ret )
    1.18  		{
    1.19  			GST_INFO_OBJECT (src, "Error: couldn't open the FileTransfer from LiveTV source!" );
    1.20  			g_object_unref( src->file );