# HG changeset patch # User rosfran # Date 1176735742 -3600 # Node ID 424babd6b788311e6f138275e023a21b1a0c2924 # Parent 73c5aaff98a911f816c8ccbde736ace9defd5d20 [svn r558] Sets the mythtv source "location" property, with the new pathname. diff -r 73c5aaff98a9 -r 424babd6b788 gst-plugins-mythtv/src/gstmythtvsrc.c --- a/gst-plugins-mythtv/src/gstmythtvsrc.c Mon Apr 16 16:01:17 2007 +0100 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.c Mon Apr 16 16:02:22 2007 +0100 @@ -712,12 +712,16 @@ goto init_failed; } + /* Check if the file is local to this specific client renderer */ 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 ); + + /* sets the mythtvsrc "location" property */ + g_object_set (src, "location", gmyth_file_get_uri (src->file), NULL); if ( !ret ) { @@ -727,14 +731,17 @@ goto init_failed; } } else { - + + /* Check if the file is local to this specific client renderer, and tries to open + * a local connection + */ if ( gmyth_uri_is_local_file(gmyth_uri) ) { src->file = GMYTH_FILE(gmyth_file_local_new(src->backend_info)); ret = gmyth_file_local_open ( GMYTH_FILE_LOCAL( src->file ) ); } else { src->file = GMYTH_FILE(gmyth_file_transfer_new(src->backend_info)); - ret = gmyth_file_transfer_open ( GMYTH_FILE_TRANSFER(src->file), src->uri_name); + ret = gmyth_file_transfer_open ( GMYTH_FILE_TRANSFER(src->file), src->uri_name ); } } /* if (else) - recorded FileTransfer */