Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gstreamer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
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
luzpaz
gstreamer
Commits
d73b4edc
Commit
d73b4edc
authored
Jul 26, 2013
by
Wim Taymans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clock: debug the clock return values
parent
aa5ea6d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletion
+32
-1
gst/gstclock.c
gst/gstclock.c
+32
-1
No files found.
gst/gstclock.c
View file @
d73b4edc
...
...
@@ -193,6 +193,36 @@ G_STMT_START { \
GST_OBJECT_UNLOCK (clock); \
} G_STMT_END;
typedef
struct
{
const
gint
ret
;
const
gchar
*
name
;
GQuark
quark
;
}
GstClockQuarks
;
static
GstClockQuarks
clock_quarks
[]
=
{
{
GST_CLOCK_OK
,
"ok"
,
0
},
{
GST_CLOCK_EARLY
,
"early"
,
0
},
{
GST_CLOCK_UNSCHEDULED
,
"unscheduled"
,
0
},
{
GST_CLOCK_BUSY
,
"busy"
,
0
},
{
GST_CLOCK_BADTIME
,
"bad-time"
,
0
},
{
GST_CLOCK_ERROR
,
"error"
,
0
},
{
GST_CLOCK_UNSUPPORTED
,
"unsupported"
,
0
},
{
GST_CLOCK_DONE
,
"done"
,
0
}
};
static
const
gchar
*
gst_clock_return_get_name
(
GstClockReturn
ret
)
{
gint
i
;
for
(
i
=
0
;
i
<
G_N_ELEMENTS
(
clock_quarks
);
i
++
)
{
if
(
ret
==
clock_quarks
[
i
].
ret
)
return
clock_quarks
[
i
].
name
;
}
return
"unknown"
;
}
static
void
gst_clock_dispose
(
GObject
*
object
);
static
void
gst_clock_finalize
(
GObject
*
object
);
...
...
@@ -512,7 +542,8 @@ gst_clock_id_wait (GstClockID id, GstClockTimeDiff * jitter)
res
=
cclass
->
wait
(
clock
,
entry
,
jitter
);
GST_CAT_DEBUG_OBJECT
(
GST_CAT_CLOCK
,
clock
,
"done waiting entry %p, res: %d"
,
id
,
res
);
"done waiting entry %p, res: %d (%s)"
,
id
,
res
,
gst_clock_return_get_name
(
res
));
if
(
entry
->
type
==
GST_CLOCK_ENTRY_PERIODIC
)
entry
->
time
=
requested
+
entry
->
interval
;
...
...
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