Skip to content

Commit 1326bfe

Browse files
authored
fix for filepath and string for gst video player. (#8158)
1 parent b14a44f commit 1326bfe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libs/openFrameworks/video/ofGstVideoPlayer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ bool ofGstVideoPlayer::load(const of::filesystem::path & fileName){
218218
internalPixelFormat = OF_PIXELS_NATIVE;
219219
bIsAllocated = false;
220220
videoUtils.reallocateOnNextFrame();
221-
g_object_set(G_OBJECT(videoUtils.getPipeline()), "uri", fileName.c_str(), (void*)NULL);
221+
g_object_set(G_OBJECT(videoUtils.getPipeline()), "uri", name.c_str(), (void*)NULL);
222222
gst_element_set_state (videoUtils.getPipeline(), GST_STATE_PAUSED);
223223
if(!bIsStream){
224224
gst_element_get_state (videoUtils.getPipeline(), NULL, NULL, -1);
@@ -228,7 +228,7 @@ bool ofGstVideoPlayer::load(const of::filesystem::path & fileName){
228228
}
229229
}else{
230230
ofGstUtils::startGstMainLoop();
231-
return createPipeline(fileName) &&
231+
return createPipeline(name) &&
232232
videoUtils.startPipeline() &&
233233
(bIsStream || allocate());
234234
}

0 commit comments

Comments
 (0)