Commit b5f16d75 authored by Johan Bilien's avatar Johan Bilien

* plugins/satellite/input_satellite.c: cosmetic changes in error messages

    * plugins/gtk/*: gtk and gnome interfaces now uses frequency and
                     symbol rates default values
parent 966567ba
...@@ -15,6 +15,8 @@ do ...@@ -15,6 +15,8 @@ do
EOF EOF
tail +8 $file \ tail +8 $file \
| sed 's#_("/dev/dvd")#config_GetPszVariable( "dvd" )#' \ | sed 's#_("/dev/dvd")#config_GetPszVariable( "dvd" )#' \
| sed 's#11954#config_GetIntVariable( "frequency" )#' \
| sed 's#27500#config_GetIntVariable( "symbol-rate" )#' \
>> /tmp/$$.$file.bak >> /tmp/$$.$file.bak
mv -f /tmp/$$.$file.bak $file mv -f /tmp/$$.$file.bak $file
fi fi
......
...@@ -2696,7 +2696,7 @@ create_intf_sat (void) ...@@ -2696,7 +2696,7 @@ create_intf_sat (void)
(GtkAttachOptions) (0), 0, 0); (GtkAttachOptions) (0), 0, 0);
gtk_misc_set_alignment (GTK_MISC (label30), 0, 0.5); gtk_misc_set_alignment (GTK_MISC (label30), 0, 0.5);
sat_freq_adj = gtk_adjustment_new (11954, 10000, 12999, 1, 10, 10); sat_freq_adj = gtk_adjustment_new (config_GetIntVariable( "frequency" ), 10000, 12999, 1, 10, 10);
sat_freq = gtk_spin_button_new (GTK_ADJUSTMENT (sat_freq_adj), 1, 0); sat_freq = gtk_spin_button_new (GTK_ADJUSTMENT (sat_freq_adj), 1, 0);
gtk_widget_ref (sat_freq); gtk_widget_ref (sat_freq);
gtk_object_set_data_full (GTK_OBJECT (intf_sat), "sat_freq", sat_freq, gtk_object_set_data_full (GTK_OBJECT (intf_sat), "sat_freq", sat_freq,
...@@ -2747,7 +2747,7 @@ create_intf_sat (void) ...@@ -2747,7 +2747,7 @@ create_intf_sat (void)
(GtkAttachOptions) (0), 0, 0); (GtkAttachOptions) (0), 0, 0);
gtk_misc_set_alignment (GTK_MISC (label33), 0, 0.5); gtk_misc_set_alignment (GTK_MISC (label33), 0, 0.5);
sat_srate_adj = gtk_adjustment_new (27500, 1000, 30000, 1, 10, 10); sat_srate_adj = gtk_adjustment_new (config_GetIntVariable( "symbol-rate" ), 1000, 30000, 1, 10, 10);
sat_srate = gtk_spin_button_new (GTK_ADJUSTMENT (sat_srate_adj), 1, 0); sat_srate = gtk_spin_button_new (GTK_ADJUSTMENT (sat_srate_adj), 1, 0);
gtk_widget_ref (sat_srate); gtk_widget_ref (sat_srate);
gtk_object_set_data_full (GTK_OBJECT (intf_sat), "sat_srate", sat_srate, gtk_object_set_data_full (GTK_OBJECT (intf_sat), "sat_srate", sat_srate,
......
...@@ -2470,7 +2470,7 @@ create_intf_sat (void) ...@@ -2470,7 +2470,7 @@ create_intf_sat (void)
gtk_table_set_row_spacings (GTK_TABLE (table3), 5); gtk_table_set_row_spacings (GTK_TABLE (table3), 5);
gtk_table_set_col_spacings (GTK_TABLE (table3), 5); gtk_table_set_col_spacings (GTK_TABLE (table3), 5);
sat_freq_adj = gtk_adjustment_new (11954, 10000, 12999, 1, 10, 10); sat_freq_adj = gtk_adjustment_new (config_GetIntVariable( "frequency" ), 10000, 12999, 1, 10, 10);
sat_freq = gtk_spin_button_new (GTK_ADJUSTMENT (sat_freq_adj), 1, 0); sat_freq = gtk_spin_button_new (GTK_ADJUSTMENT (sat_freq_adj), 1, 0);
gtk_widget_ref (sat_freq); gtk_widget_ref (sat_freq);
gtk_object_set_data_full (GTK_OBJECT (intf_sat), "sat_freq", sat_freq, gtk_object_set_data_full (GTK_OBJECT (intf_sat), "sat_freq", sat_freq,
...@@ -2480,7 +2480,7 @@ create_intf_sat (void) ...@@ -2480,7 +2480,7 @@ create_intf_sat (void)
(GtkAttachOptions) (GTK_EXPAND | GTK_FILL), (GtkAttachOptions) (GTK_EXPAND | GTK_FILL),
(GtkAttachOptions) (0), 0, 0); (GtkAttachOptions) (0), 0, 0);
sat_srate_adj = gtk_adjustment_new (27500, 1000, 30000, 1, 10, 10); sat_srate_adj = gtk_adjustment_new (config_GetIntVariable( "symbol-rate" ), 1000, 30000, 1, 10, 10);
sat_srate = gtk_spin_button_new (GTK_ADJUSTMENT (sat_srate_adj), 1, 0); sat_srate = gtk_spin_button_new (GTK_ADJUSTMENT (sat_srate_adj), 1, 0);
gtk_widget_ref (sat_srate); gtk_widget_ref (sat_srate);
gtk_object_set_data_full (GTK_OBJECT (intf_sat), "sat_srate", sat_srate, gtk_object_set_data_full (GTK_OBJECT (intf_sat), "sat_srate", sat_srate,
......
...@@ -139,7 +139,7 @@ create_pixmap (GtkWidget *widget, ...@@ -139,7 +139,7 @@ create_pixmap (GtkWidget *widget,
} }
/* This is an internally used function to check if a pixmap file exists. */ /* This is an internally used function to check if a pixmap file exists. */
gchar* static gchar*
check_file_exists (const gchar *directory, check_file_exists (const gchar *directory,
const gchar *filename) const gchar *filename)
{ {
......
...@@ -259,29 +259,29 @@ static int SatelliteOpen( input_thread_t * p_input ) ...@@ -259,29 +259,29 @@ static int SatelliteOpen( input_thread_t * p_input )
return -1; return -1;
break; break;
case -3: case -3:
intf_ErrMsg( "input: satellite: Frontend returned\ intf_ErrMsg( "input: satellite: Frontend returned"\
no event" ); "no event" );
close( p_satellite->i_handle ); close( p_satellite->i_handle );
free( p_satellite ); free( p_satellite );
return -1; return -1;
break; break;
case -4: case -4:
intf_ErrMsg( "input: satellite: Frontend: time out\ intf_ErrMsg( "input: satellite: Frontend: time out"\
when polling for event" ); "when polling for event" );
close( p_satellite->i_handle ); close( p_satellite->i_handle );
free( p_satellite ); free( p_satellite );
return -1; return -1;
break; break;
case -5: case -5:
intf_ErrMsg( "input: satellite: An error occured when polling\ intf_ErrMsg( "input: satellite: An error occured when polling"\
Frontend device" ); "Frontend device" );
close( p_satellite->i_handle ); close( p_satellite->i_handle );
free( p_satellite ); free( p_satellite );
return -1; return -1;
break; break;
case -1: case -1:
intf_ErrMsg( "input: satellite: Frontend returned\ intf_ErrMsg( "input: satellite: Frontend returned"\
an failure event" ); "a failure event" );
close( p_satellite->i_handle ); close( p_satellite->i_handle );
free( p_satellite ); free( p_satellite );
return -1; return -1;
...@@ -294,8 +294,8 @@ static int SatelliteOpen( input_thread_t * p_input ) ...@@ -294,8 +294,8 @@ static int SatelliteOpen( input_thread_t * p_input )
if ( ioctl_SetDMXFilter( 0, &i_fd, 3 ) < 0 ) if ( ioctl_SetDMXFilter( 0, &i_fd, 3 ) < 0 )
{ {
intf_ErrMsg( "input: satellite: An error occured when setting\ intf_ErrMsg( "input: satellite: An error occured when setting"\
filter on PAT" ); "filter on PAT" );
close( p_satellite->i_handle ); close( p_satellite->i_handle );
free( p_satellite ); free( p_satellite );
return -1; return -1;
...@@ -303,8 +303,8 @@ static int SatelliteOpen( input_thread_t * p_input ) ...@@ -303,8 +303,8 @@ static int SatelliteOpen( input_thread_t * p_input )
if( input_InitStream( p_input, sizeof( stream_ts_data_t ) ) == -1 ) if( input_InitStream( p_input, sizeof( stream_ts_data_t ) ) == -1 )
{ {
intf_ErrMsg( "input: satellite: Not enough memory to allow stream\ intf_ErrMsg( "input: satellite: Not enough memory to allow stream"\
structure" ); "structure" );
close( p_satellite->i_handle ); close( p_satellite->i_handle );
free( p_satellite ); free( p_satellite );
return( -1 ); return( -1 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment