case 11:
mvcp_unit_set( dv, unit, "eof", "loop");
- this->eof = 0;
+ this->eof[this->selected_unit] = 0;
break;
case 12:
mvcp_unit_set( dv, unit, "eof", "pause");
- this->eof = 0;
+ this->eof[this->selected_unit] = 0;
break;
default:
gtk_signal_emit_by_name( GTK_OBJECT(trim_adj[TRIM_ADJ_POS]), "value_changed" );
}
- gtk_widget_set_sensitive( lookup_widget( dv1394app_get_widget( this ), "transport_11" ), this->eof == 'p' );
- gtk_widget_set_sensitive( lookup_widget( dv1394app_get_widget( this ), "transport_12" ), this->eof == 'l' );
+ gtk_widget_set_sensitive( lookup_widget( dv1394app_get_widget( this ), "transport_11" ),
+ this->eof[this->selected_unit] == 'p' );
+ gtk_widget_set_sensitive( lookup_widget( dv1394app_get_widget( this ), "transport_12" ),
+ this->eof[this->selected_unit] == 'l' );
}
static gboolean trim_pressed( GtkWidget *button, GdkEventButton *event, gpointer user_data )
while ( !this->terminated )
{
+ char buf[32];
+
+ if ( !this->app->eof[this->app->selected_unit] &&
+ mvcp_unit_get( this->app->command, this->app->selected_unit,
+ "eof", buf, sizeof(buf) ) != -1)
+ this->app->eof[this->app->selected_unit] = buf[0];
+
if ( mvcp_notifier_wait( notifier, &status ) != -1 )
{
- char buf[32];
-
if ( status.status == unit_disconnected )
{
- this->app->eof = 0;
+ this->app->eof[this->app->selected_unit] = 0;
break;
}
if ( show_status( this, &status ) )
show_units( this, TRUE );
- if ( !this->app->eof && mvcp_unit_get( this->app->command, this->app->selected_unit,
- "eof", buf, sizeof(buf) ) != -1)
- this->app->eof = buf[0];
}
}