]> git.sesse.net Git - vlc/commitdiff
qt: discard bookmark byte offset
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 27 Aug 2013 18:56:38 +0000 (21:56 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 27 Aug 2013 18:56:38 +0000 (21:56 +0300)
This is useless given that the time offset is set and the input core
ignores the byte offset when the time offset is set. I think the column
should probably be removed completely.

modules/gui/qt4/dialogs/bookmarks.cpp

index 4867c88754f881d56886aa49d379bdf449c796fb..18558db272f2322ea0fff42d34686dff5b137cb3 100644 (file)
@@ -141,7 +141,7 @@ void BookmarksDialog::update()
         // List with the differents elements of the row
         QStringList row;
         row << QString( qfu( pp_bookmarks[i]->psz_name ) );
-        row << QString::number( pp_bookmarks[i]->i_byte_offset );
+        row << qfu("-");
         int total = pp_bookmarks[i]->i_time_offset/ 1000000;
         int hour = total / (60*60);
         int min = (total - hour*60*60) / 60;
@@ -240,8 +240,6 @@ void BookmarksDialog::edit( QTreeWidgetItem *item, int column )
         free( p_seekpoint->psz_name );
         p_seekpoint->psz_name = strdup( qtu( item->text( column ) ) );
     }
-    else if( column == 1 )
-        p_seekpoint->i_byte_offset = atoi( qtu( item->text( column ) ) );
     else if( column == 2 )
     {
         fields = item->text( column ).split( ":", QString::SkipEmptyParts );