[svn r110] Moved function IS_RECORDING from FileTransfer to Recorder. trunk
authorrosfran
Fri Nov 24 14:55:41 2006 +0000 (2006-11-24)
branchtrunk
changeset 109110d51c17581
parent 108 f2b53549deef
child 110 ce35e2e839f4
[svn r110] Moved function IS_RECORDING from FileTransfer to Recorder.
gmyth/src/gmyth_file_transfer.c
     1.1 --- a/gmyth/src/gmyth_file_transfer.c	Fri Nov 24 14:54:39 2006 +0000
     1.2 +++ b/gmyth/src/gmyth_file_transfer.c	Fri Nov 24 14:55:41 2006 +0000
     1.3 @@ -523,44 +523,6 @@
     1.4  
     1.5  }
     1.6  
     1.7 -gboolean
     1.8 -gmyth_file_transfer_is_recording ( GMythFileTransfer *file_transfer )
     1.9 -{
    1.10 -  gboolean ret = TRUE;
    1.11 -  
    1.12 -  GMythStringList *str_list = gmyth_string_list_new ();
    1.13 -
    1.14 -  g_debug ( "[%s]\n", __FUNCTION__ );
    1.15 -  myth_control_acquire_context (TRUE);
    1.16 -
    1.17 -  g_string_printf( file_transfer->query, "%s %d", GMYTHTV_RECORDER_HEADER, 
    1.18 -      file_transfer->rec_id >= 0 ? file_transfer->rec_id : file_transfer->card_id );
    1.19 -  gmyth_string_list_append_string (str_list, file_transfer->query);
    1.20 -  gmyth_string_list_append_string (str_list, g_string_new ("IS_RECORDING"));
    1.21 -
    1.22 -  gmyth_socket_sendreceive_stringlist ( file_transfer->control_sock, str_list );
    1.23 -
    1.24 -  if ( str_list != NULL && gmyth_string_list_length(str_list) > 0 ) 
    1.25 -  {
    1.26 -    GString *str = NULL;
    1.27 -    if ( ( str = gmyth_string_list_get_string( str_list, 0 ) ) != NULL && strcmp( str->str, "bad" )!= 0 ) {
    1.28 -      gint is_rec = gmyth_string_list_get_int( str_list, 0 );
    1.29 -      if ( is_rec != 0 )
    1.30 -	ret = TRUE;
    1.31 -      else
    1.32 -	ret = FALSE;
    1.33 -    }
    1.34 -  }  
    1.35 -  g_print( "[%s] %s, stream is %s being recorded!\n", __FUNCTION__, ret ? "YES" : "NO", ret ? "" : "NOT" );
    1.36 -  myth_control_release_context( );
    1.37 -
    1.38 -  if ( str_list != NULL )
    1.39 -    g_object_unref (str_list);
    1.40 -
    1.41 -  return ret;
    1.42 -
    1.43 -}
    1.44 -
    1.45  gint64
    1.46  gmyth_file_transfer_get_file_position ( GMythFileTransfer *file_transfer )
    1.47  {