Skip to content

Commit 236bc15

Browse files
committed
Fixed an issue where app and stream names were not separated
1 parent 065dd89 commit 236bc15

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/projects/providers/rtmp/rtmp_stream.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,13 @@ namespace pvd
304304
pair = object->GetPair("app", AmfTypeMarker::String);
305305
if (pair != nullptr)
306306
{
307-
_app_name = pair->property.GetString();
307+
_app_name = pair->property.GetString();
308+
309+
auto seprator = _app_name.IndexOf('/');
310+
if (seprator >= 0)
311+
{
312+
_app_name = _app_name.Substring(0, seprator);
313+
}
308314
}
309315

310316
// app url set

0 commit comments

Comments
 (0)