Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
309906f6
Commit
309906f6
authored
Dec 28, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx/CAS: rework misleading SDP UI
parent
6912d838
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
225 additions
and
230 deletions
+225
-230
extras/package/macosx/Resources/English.lproj/ConvertAndSave.xib
...package/macosx/Resources/English.lproj/ConvertAndSave.xib
+210
-206
modules/gui/macosx/ConvertAndSave.h
modules/gui/macosx/ConvertAndSave.h
+1
-3
modules/gui/macosx/ConvertAndSave.m
modules/gui/macosx/ConvertAndSave.m
+14
-21
No files found.
extras/package/macosx/Resources/English.lproj/ConvertAndSave.xib
View file @
309906f6
This diff is collapsed.
Click to expand it.
modules/gui/macosx/ConvertAndSave.h
View file @
309906f6
...
...
@@ -106,10 +106,8 @@
IBOutlet
id
_stream_port_lbl
;
IBOutlet
id
_stream_port_fld
;
IBOutlet
id
_stream_sap_ckb
;
IBOutlet
id
_stream_http_ckb
;
IBOutlet
id
_stream_rtsp_ckb
;
IBOutlet
id
_stream_sdp_ckb
;
IBOutlet
id
_stream_channel_fld
;
IBOutlet
id
_stream_sdp_matrix
;
IBOutlet
id
_stream_sdp_fld
;
NSString
*
_MRL
;
...
...
modules/gui/macosx/ConvertAndSave.m
View file @
309906f6
...
...
@@ -197,13 +197,12 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
[
_stream_ttl_stepper
setEnabled
:
NO
];
[
_stream_port_lbl
setStringValue
:
_NS
(
"Port"
)];
[
_stream_sap_ckb
setStringValue
:
_NS
(
"SAP Announcement"
)];
[
_stream_http_ckb
setStringValue
:
_NS
(
"HTTP Announcement"
)];
[
_stream_rtsp_ckb
setStringValue
:
_NS
(
"RTSP Announcement"
)];
[
_stream_sdp_ckb
setStringValue
:
_NS
(
"Export SDP as file"
)];
[[
_stream_sdp_matrix
cellWithTag
:
0
]
setTitle
:
_NS
(
"None"
)];
[[
_stream_sdp_matrix
cellWithTag
:
1
]
setTitle
:
_NS
(
"HTTP Announcement"
)];
[[
_stream_sdp_matrix
cellWithTag
:
2
]
setTitle
:
_NS
(
"RTSP Announcement"
)];
[[
_stream_sdp_matrix
cellWithTag
:
3
]
setTitle
:
_NS
(
"Export SDP as file"
)];
[
_stream_sap_ckb
setState
:
NSOffState
];
[
_stream_http_ckb
setState
:
NSOffState
];
[
_stream_rtsp_ckb
setState
:
NSOffState
];
[
_stream_sdp_ckb
setState
:
NSOffState
];
[
_stream_sdp_matrix
setEnabled
:
NO
];
/* there is no way to hide single cells, so replace the existing ones with empty cells.. */
id
blankCell
=
[[[
NSCell
alloc
]
init
]
autorelease
];
...
...
@@ -453,14 +452,14 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
[
labelContent
release
];
/* catch obvious errors */
if
(
([
_stream_http_ckb
state
]
||
[
_stream_rtsp_ckb
state
]
||
[
_stream_sap_ckb
state
])
&&
!
[[
_stream_channel_fld
stringValue
]
length
]
>
0
)
{
if
(
[
_stream_sap_ckb
state
]
&&
!
[[
_stream_channel_fld
stringValue
]
length
]
>
0
)
{
NSBeginInformationalAlertSheet
(
_NS
(
"No Channel Name given"
),
_NS
(
"OK"
),
@""
,
@""
,
_stream_panel
,
nil
,
nil
,
nil
,
nil
,
@"%@"
,
_NS
(
"
A stream announcement option
is enabled. However, no channel name is provided."
));
@"%@"
,
_NS
(
"
SAP stream announcement
is enabled. However, no channel name is provided."
));
return
;
}
if
([
_stream_sdp_
ckb
state
]
&&
!
[[
_stream_sdp_fld
stringValue
]
length
]
>
0
)
{
if
([
_stream_sdp_
matrix
isEnabled
]
&&
[
_stream_sdp_matrix
selectedCell
]
!=
[
_stream_sdp_matrix
cellWithTag
:
0
]
&&
!
[[
_stream_sdp_fld
stringValue
]
length
]
>
0
)
{
NSBeginInformationalAlertSheet
(
_NS
(
"No SDP URL given"
),
_NS
(
"OK"
),
@""
,
@""
,
_stream_panel
,
nil
,
nil
,
nil
,
nil
,
@"%@"
,
_NS
(
"A SDP export is requested, but no URL is provided."
));
...
...
@@ -482,31 +481,25 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
[
_stream_ttl_fld
setEnabled
:
NO
];
[
_stream_ttl_stepper
setEnabled
:
NO
];
[
_stream_sap_ckb
setEnabled
:
NO
];
[
_stream_rtsp_ckb
setEnabled
:
NO
];
[
_stream_http_ckb
setEnabled
:
NO
];
[
_stream_sdp_ckb
setEnabled
:
NO
];
[
_stream_sdp_matrix
setEnabled
:
NO
];
}
else
if
(
index
==
2
)
{
// RTP
[
_stream_ttl_fld
setEnabled
:
YES
];
[
_stream_ttl_stepper
setEnabled
:
YES
];
[
_stream_sap_ckb
setEnabled
:
YES
];
[
_stream_rtsp_ckb
setEnabled
:
YES
];
[
_stream_http_ckb
setEnabled
:
YES
];
[
_stream_sdp_ckb
setEnabled
:
YES
];
[
_stream_sdp_matrix
setEnabled
:
YES
];
}
else
{
// UDP
[
_stream_ttl_fld
setEnabled
:
YES
];
[
_stream_ttl_stepper
setEnabled
:
YES
];
[
_stream_sap_ckb
setEnabled
:
YES
];
[
_stream_rtsp_ckb
setEnabled
:
NO
];
[
_stream_http_ckb
setEnabled
:
NO
];
[
_stream_sdp_ckb
setEnabled
:
NO
];
[
_stream_sdp_matrix
setEnabled
:
NO
];
}
[
self
streamAnnouncementToggle
:
sender
];
}
-
(
IBAction
)
streamAnnouncementToggle
:(
id
)
sender
{
[
_stream_channel_fld
setEnabled
:
([
_stream_http_ckb
state
]
||
[
_stream_rtsp_ckb
state
]
||
[
_stream_sap_ckb
state
])
&&
([
_stream_http_ckb
isEnabled
]
||
[
_stream_rtsp_ckb
isEnabled
]
||
[
_stream_sap_ckb
isEnabled
])
];
[
_stream_sdp_fld
setEnabled
:[
_stream_sdp_
ckb
state
]
];
[
_stream_channel_fld
setEnabled
:
[
_stream_sap_ckb
state
]
&&
[
_stream_sap_ckb
isEnabled
]
];
[
_stream_sdp_fld
setEnabled
:[
_stream_sdp_
matrix
isEnabled
]
&&
([
_stream_sdp_matrix
selectedCell
]
!=
[
_stream_sdp_matrix
cellWithTag
:
0
])
];
}
-
(
BOOL
)
performDragOperation
:(
id
<
NSDraggingInfo
>
)
sender
...
...
@@ -889,7 +882,7 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
if
([
_stream_sap_ckb
state
])
[
composedOptions
appendFormat
:
@",sap,name=
\"
%@
\"
"
,
[
_stream_channel_fld
stringValue
]];
if
([
_stream_sdp_
ckb
state
])
if
([
_stream_sdp_
matrix
selectedCell
]
!=
[
_stream_sdp_matrix
cellWithTag
:
0
])
//FIXME
[
composedOptions
appendFormat
:
@",sdp=%@"
,
[
_stream_sdp_fld
stringValue
]];
[
composedOptions
appendString
:
@"} :sout-keep"
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment