From 8431f12672beee3becda5d4a076e53b54deab432 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 6 May 2013 15:45:01 +0100 Subject: Try to disable subtitle stream choice if there are none. --- src/wx/ffmpeg_content_dialog.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/wx/ffmpeg_content_dialog.cc b/src/wx/ffmpeg_content_dialog.cc index d1b7ffb1e..8adff59f4 100644 --- a/src/wx/ffmpeg_content_dialog.cc +++ b/src/wx/ffmpeg_content_dialog.cc @@ -56,6 +56,9 @@ FFmpegContentDialog::FFmpegContentDialog (wxWindow* parent, shared_ptrClear (); vector s = content->subtitle_streams (); + if (s.empty ()) { + _subtitle_stream->Enable (false); + } for (vector::iterator i = s.begin(); i != s.end(); ++i) { _subtitle_stream->Append (std_to_wx (i->name), new wxStringClientData (std_to_wx (lexical_cast (i->id)))); } -- cgit v1.2.3