tweaked merge
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ struct MediaStream {
|
||||
|
||||
// preview thumbnail/waveform
|
||||
bool preview_done;
|
||||
QPixmap video_preview; // TODO change to QPixmap
|
||||
QPixmap video_preview;
|
||||
QVector<char> audio_preview;
|
||||
};
|
||||
|
||||
|
||||
@@ -439,9 +439,7 @@ void PreviewGenerator::run() {
|
||||
// save preview to file
|
||||
for (int i=0;i<media->video_tracks.size();i++) {
|
||||
MediaStream* ms = media->video_tracks.at(i);
|
||||
if (ms->video_preview.save(get_thumbnail_path(hash, ms), "PNG")) {
|
||||
//dout << "saved" << ms->file_index << "thumb to" << get_thumbnail_path(hash, ms);
|
||||
}
|
||||
ms->video_preview.save(get_thumbnail_path(hash, ms), "PNG");
|
||||
}
|
||||
for (int i=0;i<media->audio_tracks.size();i++) {
|
||||
MediaStream* ms = media->audio_tracks.at(i);
|
||||
|
||||
Reference in New Issue
Block a user