diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-06 15:45:01 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-06 15:45:01 +0100 |
| commit | 8431f12672beee3becda5d4a076e53b54deab432 (patch) | |
| tree | d4682f846ef1df3727da1299161ad30b9cebfac9 /src | |
| parent | fdf7a3a9d7dbac9fe41a2e96b47f1d053b7b0f76 (diff) | |
Try to disable subtitle stream choice if there are none.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/ffmpeg_content_dialog.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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_ptr<FFmpegCon _subtitle_stream->Clear (); vector<FFmpegSubtitleStream> s = content->subtitle_streams (); + if (s.empty ()) { + _subtitle_stream->Enable (false); + } for (vector<FFmpegSubtitleStream>::iterator i = s.begin(); i != s.end(); ++i) { _subtitle_stream->Append (std_to_wx (i->name), new wxStringClientData (std_to_wx (lexical_cast<string> (i->id)))); } |
