<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div><br></div><div>On Fri, May 31, 2019, at 15:35, Roland Bewick wrote:<br></div><blockquote id="qt" type="cite"><div><div dir="auto"><br></div></div><div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Fri, 31 May 2019 at 6:42 PM, Thomas Guillem <<a href="mailto:thomas@gllm.fr">thomas@gllm.fr</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><div><u></u><br></div><div><div>The best solution I could think of:<br></div><div> - Add an helper to get all selected track (an array like few other helpers) for an ES<br></div><div> - If (selected_spu_track > 2) then SelectList else SelectOne<br></div><div><br></div><div>It will work with more than one UI used.<br></div></div></blockquote><div dir="auto"><br></div><div dir="auto"><div dir="auto"><div dir="auto">Hi Thomas,<br></div></div><div dir="auto"><br></div><div dir="auto">I don’t think this will work for the QT GUI because you can only select a secondary subtitle track if:<br></div><div dir="auto"><br></div><div dir="auto">A. There is only one track selected (if there are two already selected, you must deselect one first)<br></div><div dir="auto">B. Dual subtitles are enabled<br></div><div dir="auto"><br></div><div dir="auto">If the user selects two subtitle tracks using the hotkeys and then deselects one of them from QT, they can no longer select a second subtitle track using QT.<br></div><div dir="auto"><br></div><div dir="auto">Thanks for your thoughts,<br></div></div></div></div></blockquote><div><br></div><div>I think each interfaces should handle their own way to handle dual tracks.<br></div><div>In QT, you  need  a button alongside the track selection menu that will switch from radio to checkbox.<br></div><div>In hotkey, you add a key that switch dual/single.<br></div><div><br></div><div>In addition, you could get the initial dual state by getting the list of selected track. If count >= 2, then the user likely want dual selection<br></div><div><br></div><div>JB, any thoughts ?<br></div><div><br></div><div><br></div><blockquote id="qt" type="cite"><div><div class="qt-gmail_quote"><div dir="auto"><div dir="auto">Roland<br></div></div><div dir="auto"><br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><div><div><br></div></div><div><div><br></div><div>On Wed, May 29, 2019, at 04:47, Roland Bewick wrote:<br></div><blockquote type="cite" id="qt-m_5755248560392840133qt"><div><br></div><div><div><br></div><div class="qt-m_5755248560392840133qt-gmail_quote"><div class="qt-m_5755248560392840133qt-gmail_attr" dir="ltr">On Tue, 28 May 2019 at 5:50 PM, Roland Bewick <<a href="mailto:roland.bewick@gmail.com">roland.bewick@gmail.com</a>> wrote:<br></div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;" class="qt-m_5755248560392840133qt-gmail_quote"><div><br></div><div>On 28/05/2019 5:31 PM, Rémi Denis-Courmont wrote:<br></div><div>> Hi,<br></div><div>><br></div><div>> Well that's kind of the point: you can not assume that other UIs will <br></div><div>> understand what's happening - anyway.<br></div><div>><br></div><div>> Qt can just check how many SPU are selected. But you can't assume that <br></div><div>> other UI will do that nor that they'll check any flag that you might <br></div><div>> have added.<br></div><div><br></div><div>Ok, I finally understand what you're saying - thanks for clarifying.<br></div><div><br></div><div>So QT can use the track selection changed event to check whether two <br></div><div>subtitles are simultaneously selected, and if so enable dual subtitles <br></div><div>in the QT GUI. (Which means some other interface enabled dual subtitles)<br></div><div><br></div><div>On 28/05/2019 5:17 PM, Thomas Guillem wrote:<br></div><div><br></div><div>> Maybe you could save this parameter as a variable (like <br></div><div>> "multiple-spus") in the root vlc object.<br></div><div><br></div><div>I'm happy with this option too.<br></div><div><br></div><div><br></div><div>In both these options I'll still have to pass the bool to TrackListModel.<br></div><div><br></div><div>Roland<br></div></blockquote><div dir="auto"><br></div><div dir="auto">Could a decision be made on where I should go from here?<br></div><div dir="auto"><br></div><div dir="auto">Thank you,<br></div><div dir="auto">Roland<br></div></div></div><div>_______________________________________________<br></div><div>vlc-devel mailing list<br></div><div>To unsubscribe or modify your subscription options:<br></div><div><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br></div></blockquote><div><br></div></div><div>_______________________________________________<br></div><div>vlc-devel mailing list<br></div><div>To unsubscribe or modify your subscription options:<br></div><div><a href="https://mailman.videolan.org/listinfo/vlc-devel" rel="noreferrer">https://mailman.videolan.org/listinfo/vlc-devel</a><br></div></blockquote></div></div><div>_______________________________________________<br></div><div>vlc-devel mailing list<br></div><div>To unsubscribe or modify your subscription options:<br></div><div>https://mailman.videolan.org/listinfo/vlc-devel<br></div></blockquote><div><br></div></body></html>