[gst-cvs] gst-plugins-bad: resindvd: Don' t send highlight-reset messages when not needed
Jan Schmidt
thaytan at kemper.freedesktop.org
Thu May 7 03:19:12 PDT 2009
Module: gst-plugins-bad
Branch: master
Commit: f7fad4a88b56dd74b14070886c8e86bb14942b20
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=f7fad4a88b56dd74b14070886c8e86bb14942b20
Author: Jan Schmidt <thaytan at noraisin.net>
Date: Tue May 5 13:18:20 2009 +0100
resindvd: Don't send highlight-reset messages when not needed
Fix a small bug that results in the SPU highlight being reset more often
than is necessary - ie, clearing it when it's already cleared.
---
ext/resindvd/resindvdsrc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ext/resindvd/resindvdsrc.c b/ext/resindvd/resindvdsrc.c
index 35cf8e1..389b901 100644
--- a/ext/resindvd/resindvdsrc.c
+++ b/ext/resindvd/resindvdsrc.c
@@ -1798,7 +1798,7 @@ rsn_dvdsrc_update_highlight (resinDvdSrc * src)
if (button == 0) {
/* No highlight available, or no button selected - clear the SPU */
- if (src->active_button < 1) {
+ if (src->active_button != 0) {
src->active_button = 0;
s = gst_structure_new ("application/x-gst-dvd", "event",
More information about the Gstreamer-commits
mailing list