summaryrefslogtreecommitdiffstats
path: root/ext/resindvd
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-05-05 13:18:20 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-05-06 21:21:42 +0100
commitf7fad4a88b56dd74b14070886c8e86bb14942b20 (patch)
treedcf3d8d1144574999b9e48ff0c2cb971a466999b /ext/resindvd
parent491583b6482fd6287653b8c6fb49494dd44b4261 (diff)
downloadgst-plugins-bad-f7fad4a88b56dd74b14070886c8e86bb14942b20.tar.gz
gst-plugins-bad-f7fad4a88b56dd74b14070886c8e86bb14942b20.tar.bz2
gst-plugins-bad-f7fad4a88b56dd74b14070886c8e86bb14942b20.zip
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.
Diffstat (limited to 'ext/resindvd')
-rw-r--r--ext/resindvd/resindvdsrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/resindvd/resindvdsrc.c b/ext/resindvd/resindvdsrc.c
index 35cf8e15..389b9016 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",