Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video support: only show gstreamer output after player is initialized #222

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pympress/media_overlays/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def show(self):
self.parent.reorder_overlay(self.media_overlay, 2)
self.resize()
self.parent.queue_draw()
self.media_overlay.show()
self.media_overlay.hide() # hide it initially; it will be shown in the play function


def do_hide(self, *args):
Expand Down
1 change: 1 addition & 0 deletions pympress/media_overlays/gst_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def mute(self, value):
def on_play(self, *args):
""" Start the scroll bar updating process.
"""
self.media_overlay.show() # player initialized; show the video now
GLib.idle_add(self.do_update_duration)
GLib.timeout_add(200, self.do_update_time)

Expand Down