libobs: Change return type for getting filter index

This changes the return type for getting the filter index from a
size_t to an int. This makes it easier for developers to use,
as an invalid index just returns a -1.
This commit is contained in:
cg2121
2023-07-20 13:21:14 -07:00
committed by Lain
parent ee530c2f49
commit cb8b5ba9cd
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1281,7 +1281,7 @@ void OBSBasicFilters::FiltersMoved(const QModelIndex &, int srcIdxStart, int,
neighborIdx = 0;
OBSSource neighbor = GetFilter(neighborIdx, isAsync);
size_t idx = obs_source_filter_get_index(source, neighbor);
int idx = obs_source_filter_get_index(source, neighbor);
OBSSource filter = GetFilter(list->currentRow(), isAsync);
obs_source_filter_set_index(source, filter, idx);