Browse Source

vlc-video: Set properties to defer update mode

Makes it so that the settings do not update every time the user touches
a property of the source, but instead update when the user is finished.
jp9000 8 years ago
parent
commit
c914c1c23b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      plugins/vlc-video/vlc-video-source.c

+ 1 - 0
plugins/vlc-video/vlc-video-source.c

@@ -831,6 +831,7 @@ static obs_properties_t *vlcs_properties(void *data)
 	struct dstr path = {0};
 	struct dstr path = {0};
 	obs_property_t *p;
 	obs_property_t *p;
 
 
+	obs_properties_set_flags(ppts, OBS_PROPERTIES_DEFER_UPDATE);
 	obs_properties_add_bool(ppts, S_LOOP, T_LOOP);
 	obs_properties_add_bool(ppts, S_LOOP, T_LOOP);
 	obs_properties_add_bool(ppts, S_SHUFFLE, T_SHUFFLE);
 	obs_properties_add_bool(ppts, S_SHUFFLE, T_SHUFFLE);