-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tests for record file option parsing #107
Conversation
@@ -376,10 +376,10 @@ def test_new_record(self): | |||
|
|||
curr_time = datetime.datetime.now() | |||
alt_curr_time = curr_time + datetime.timedelta(0, 1) | |||
time_str = curr_time.strftime('%Y-%m-%d %H%M%S') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just use %Y.
Or you could use %q maybe instead?
@@ -40,7 +40,7 @@ def __init__( | |||
video_port=3000, | |||
audio_port=4000, | |||
control_port=5000, | |||
record_file='record.data'): | |||
record_file='record-%Y-%m-%d_%H%M%S.data'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be left empty by default I think.
record_file=True
means -r
and you get the default file name inside gst-switch-server.
record_file='record-%Y-%m-%d'
should be the same as --record="record-%Y-%m-%d"
and you get files of the name you specify.
cc97a1f
to
e8e90bc
Compare
@mithro updated commit. |
I think #117 conflicts with this pull request. @hyades and @MaZderMind - can you guys figure out which one I should merge? |
3bf37fe
to
f3698c5
Compare
LGTM - merging. |
Fix tests for record file option parsing
No description provided.