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.
This commit is contained in:
Jan Schmidt 2009-05-05 13:18:20 +01:00
parent 491583b648
commit f7fad4a88b

View file

@ -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",