mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 19:55:32 +00:00
app: only run discover for files
This commit is contained in:
parent
80be4db45d
commit
869499423c
2 changed files with 5 additions and 3 deletions
|
@ -79,9 +79,12 @@ public class MediaInfo.App : Window
|
||||||
|
|
||||||
private void on_update_preview ()
|
private void on_update_preview ()
|
||||||
{
|
{
|
||||||
string uri = chooser.get_preview_uri();
|
File file = chooser.get_preview_file();
|
||||||
bool res = info.discover (uri);
|
bool res = false;
|
||||||
|
|
||||||
|
if (file.query_file_type (FileQueryInfoFlags.NONE, null) == FileType.REGULAR) {
|
||||||
|
res = info.discover (chooser.get_preview_uri());
|
||||||
|
}
|
||||||
chooser.set_preview_widget_active (res);
|
chooser.set_preview_widget_active (res);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,7 +131,6 @@ public class MediaInfo.Info : VBox
|
||||||
// stop previous playback
|
// stop previous playback
|
||||||
pb.set_state (State.NULL);
|
pb.set_state (State.NULL);
|
||||||
|
|
||||||
// TODO: check if uri is a regular (local file)?
|
|
||||||
if (uri != null) {
|
if (uri != null) {
|
||||||
DiscovererInfo info;
|
DiscovererInfo info;
|
||||||
bool uncertain;
|
bool uncertain;
|
||||||
|
|
Loading…
Reference in a new issue