Skip to content

Commit

Permalink
fix for filepath and string for gst video player.
Browse files Browse the repository at this point in the history
  • Loading branch information
NickHardeman committed Oct 23, 2024
1 parent b14a44f commit c653191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/openFrameworks/video/ofGstVideoPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ bool ofGstVideoPlayer::load(const of::filesystem::path & fileName){
internalPixelFormat = OF_PIXELS_NATIVE;
bIsAllocated = false;
videoUtils.reallocateOnNextFrame();
g_object_set(G_OBJECT(videoUtils.getPipeline()), "uri", fileName.c_str(), (void*)NULL);
g_object_set(G_OBJECT(videoUtils.getPipeline()), "uri", name.c_str(), (void*)NULL);
gst_element_set_state (videoUtils.getPipeline(), GST_STATE_PAUSED);
if(!bIsStream){
gst_element_get_state (videoUtils.getPipeline(), NULL, NULL, -1);
Expand All @@ -228,7 +228,7 @@ bool ofGstVideoPlayer::load(const of::filesystem::path & fileName){
}
}else{
ofGstUtils::startGstMainLoop();
return createPipeline(fileName) &&
return createPipeline(name) &&
videoUtils.startPipeline() &&
(bIsStream || allocate());
}
Expand Down

0 comments on commit c653191

Please sign in to comment.