Skip to content

Commit

Permalink
Fix: Slots for clips only used when a clip is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Leitet committed Oct 8, 2020
1 parent 2e27092 commit 4114c98
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions SwitcherLib/Upload.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ public Upload(Switcher switcher, String path, uint uploadSlot)
this.uploadSlot = uploadSlot;
this.switcher.Connect();
this.switcherMediaPool = (IBMDSwitcherMediaPool)this.switcher.GetSwitcher();
this.clip = this.GetClip();
this.stills = this.GetStills();


// Is a directory of clips
if (Directory.Exists(path))
Expand All @@ -68,6 +67,8 @@ public Upload(Switcher switcher, String path, uint uploadSlot)
throw new SwitcherLibException(String.Format("No bmp, jpg, jpeg, gif, png, tiff or tif files found in {0}", path));
Log.Debug(String.Format("Found {0} media files in {1}", this.framepaths.Length, path));

this.clip = this.GetClip();


UInt32 maxclips;
this.switcherMediaPool.GetFrameTotalForClips(out maxclips);
Expand All @@ -81,7 +82,8 @@ public Upload(Switcher switcher, String path, uint uploadSlot)
else if (File.Exists(path))
{
this.currentframepath = path;

this.stills = this.GetStills();

}
else
{
Expand Down

0 comments on commit 4114c98

Please sign in to comment.