Skip to content

Commit

Permalink
Enabling GST_BUS_MESSAGE for mediaplayer and stream
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoherbelin committed Oct 3, 2024
1 parent 32c83a6 commit 8041816
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ endif()

# add_definitions(-DUSE_GST_OPENGL_SYNC_HANDLER)
# add_definitions(-DUSE_GL_BUFFER_SUBDATA)
add_definitions(-DIGNORE_GST_BUS_MESSAGE)
# add_definitions(-DIGNORE_GST_BUS_MESSAGE)

#####
##### Dependencies
Expand Down
17 changes: 10 additions & 7 deletions src/UserInterfaceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4705,17 +4705,19 @@ void Navigator::RenderMainPannelSession()
ImGui::EndCombo();
}
ImVec2 pos = ImGui::GetCursorPos();
// ImGui::SameLine();
// if ( ImGuiToolkit::IconButton(ICON_FA_FILE_DOWNLOAD, "Save"))
// UserInterface::manager().saveOrSaveAs();
if (!Mixer::manager().session()->filename().empty()) {
ImGui::SameLine();
if ( ImGuiToolkit::IconButton(ICON_FA_TIMES, "Close"))
Mixer::manager().close();
ImGui::SetCursorPos(pos);
}
//// if ( Mixer::manager().session()->filename().empty()) {
//// if ( ImGuiToolkit::IconButton(ICON_FA_FILE_DOWNLOAD, "Save as"))
//// UserInterface::manager().saveOrSaveAs();
//// } else {
//// if (ImGuiToolkit::IconButton(3, 5, "Show in finder"))
//// SystemToolkit::open(SystemToolkit::path_filename(Mixer::manager().session()->filename()));
//// }
// ImGui::SetCursorPos(pos);

//
// Preview session
Expand Down Expand Up @@ -6367,10 +6369,11 @@ void ShowSandbox(bool* p_open)
ImGui::Separator();
ImGui::Text("Reset GST");

if (ImGui::Button("RESET GSTREAMER")){
if (ImGui::Button("RESET")){




gst_deinit();
// gst_init (NULL, NULL);
}


Expand Down

0 comments on commit 8041816

Please sign in to comment.