Browse Source

Fix to the demo for DirectShow video.

tags/2021-05-28
jules 12 years ago
parent
commit
5147b7d93b
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      extras/Demo/Source/Demos/VideoDemo.cpp

+ 4
- 0
extras/Demo/Source/Demos/VideoDemo.cpp View File

@@ -105,7 +105,11 @@ private:
void filenameComponentChanged (FilenameComponent*) override
{
// this is called when the user changes the filename in the file chooser box
#if JUCE_QUICKTIME
if (videoComp.loadMovie (fileChooser.getCurrentFile(), true))
#elif JUCE_DIRECTSHOW
if (videoComp.loadMovie (fileChooser.getCurrentFile()))
#endif
{
// loaded the file ok, so let's start it playing..


Loading…
Cancel
Save