h += 210;
if( indexable->is_asset ) {
Asset *asset = (Asset *)indexable;
- if( asset->format == FILE_MPEG ||
- asset->format == FILE_FFMPEG ) h += 42;
+ if( File::can_scale_input(asset) )
+ h += 42;
}
}
return h;
add_subwindow(win_height);
y += win_height->get_h() + 5;
- if( asset && (asset->format == FILE_MPEG || asset->format == FILE_FFMPEG ) ) {
+ if( asset && File::can_scale_input(asset) ) {
y += 5;
x = x1;
add_subwindow(new BC_Title(x, y, _("Actual width:")));
: BC_GenericButton(x, y, _("Detail"))
{
this->fwindow = fwindow;
- set_underline(0);
}
DetailAssetButton::~DetailAssetButton()
strncpy(info,_("no info available"),len);
if( !mwindow->preferences->get_asset_file_path(asset, file_name) ) {
switch( asset->format ) {
+#ifdef HAVE_LIBZMPEG
case FILE_MPEG:
FileMPEG::get_info(asset->path, file_name, &info[0],len);
break;
+#endif
case FILE_FFMPEG:
FileFFMPEG::get_info(asset->path, &info[0],len);
break;
}
}
+ lock_window("DetailAssetWindow::create_objects");
text = new BC_ScrollTextBox(this, x, y, get_w()-32, 23, info, -len);
text->create_objects(); text->set_text_row(0);
add_subwindow(new BC_OKButton(this));
show_window();
+ unlock_window();
}
void DetailAssetDialog::start(Asset *asset, int x, int y)