wxListView *list_ctrl;
};
+
+/*****************************************************************************
+ * Event Table.
+ *****************************************************************************/
+
DEFINE_LOCAL_EVENT_TYPE( wxEVT_BOOKMARKS );
BEGIN_EVENT_TABLE(BookmarksDialog, wxFrame)
panel_sizer->Add( button_add, 0, wxEXPAND );
panel_sizer->Add( button_del, 0, wxEXPAND );
panel_sizer->Add( button_clear, 0, wxEXPAND );
+
panel_sizer->Add( button_edit, 0, wxEXPAND );
panel_sizer->Add( 0, 0, 1 );
panel_sizer->Add( button_extract, 0, wxEXPAND );
+
panel->SetSizerAndFit( panel_sizer );
list_ctrl = new wxListView( main_panel, -1,
bookmark.i_byte_offset = 0;
bookmark.i_time_offset = 0;
-
- /* FIXME --fenrir
- * - stream_Tell can't be use (not reentrant)
- * - nobody except src/input/ could touch p_input
- * -> create new INPUT_CONTROL ...
- */
-#if 0
var_Get( p_input, "position", &pos );
bookmark.psz_name = NULL;
- bookmark.i_byte_offset = stream_Tell( p_input->input.p_stream );
- (int64_t)((double)pos.f_float * p_input->input.p_access->info.i_size);
+ input_Control( p_input, INPUT_GET_BYTE_POSITION, &bookmark.i_byte_offset );
var_Get( p_input, "time", &pos );
bookmark.i_time_offset = pos.i_time;
input_Control( p_input, INPUT_ADD_BOOKMARK, &bookmark );
-#endif
vlc_object_release( p_input );
Update();
if( !p_input )
{
wxMessageBox( wxU( _("No input found. The stream must be "
- "playing or paused for bookmarks to work") ),
+ "playing or paused for bookmarks to work.") ),
wxU( _("No input") ), wxICON_WARNING | wxOK,
this );
return;