1.1 --- a/gst-plugins-mythtv/src/gstmythtvsrc.c Fri Apr 13 22:41:14 2007 +0100
1.2 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.c Tue Apr 17 15:17:26 2007 +0100
1.3 @@ -712,12 +712,16 @@
1.4 goto init_failed;
1.5 }
1.6
1.7 + /* Check if the file is local to this specific client renderer */
1.8 if ( gmyth_uri_is_local_file(gmyth_uri) )
1.9 ret = gmyth_file_local_open( GMYTH_FILE_LOCAL(src->file) );
1.10 else
1.11 ret = gmyth_file_transfer_open( GMYTH_FILE_TRANSFER(src->file), src->spawn_livetv->uri != NULL ?
1.12 gmyth_uri_get_path(src->spawn_livetv->uri) :
1.13 src->spawn_livetv->proginfo->pathname->str );
1.14 +
1.15 + /* sets the mythtvsrc "location" property */
1.16 + g_object_set (src, "location", gmyth_file_get_uri (src->file), NULL);
1.17
1.18 if ( !ret )
1.19 {
1.20 @@ -727,14 +731,17 @@
1.21 goto init_failed;
1.22 }
1.23 } else {
1.24 -
1.25 +
1.26 + /* Check if the file is local to this specific client renderer, and tries to open
1.27 + * a local connection
1.28 + */
1.29 if ( gmyth_uri_is_local_file(gmyth_uri) )
1.30 {
1.31 src->file = GMYTH_FILE(gmyth_file_local_new(src->backend_info));
1.32 ret = gmyth_file_local_open ( GMYTH_FILE_LOCAL( src->file ) );
1.33 } else {
1.34 src->file = GMYTH_FILE(gmyth_file_transfer_new(src->backend_info));
1.35 - ret = gmyth_file_transfer_open ( GMYTH_FILE_TRANSFER(src->file), src->uri_name);
1.36 + ret = gmyth_file_transfer_open ( GMYTH_FILE_TRANSFER(src->file), src->uri_name );
1.37 }
1.38
1.39 } /* if (else) - recorded FileTransfer */