diff options
author | Christian König <[email protected]> | 2012-02-10 12:34:22 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2012-02-21 11:13:11 +0100 |
commit | 736dda82ca5477b8976e2c6b810a71efe2337267 (patch) | |
tree | 9c4b6b3c774bab115be90a2a16cbc15b890dad64 /src/gallium/state_trackers/vdpau/mixer.c | |
parent | a206c4cd69a881bf3f8d960607d604b6d53e3a26 (diff) |
st/vdpau: remove unnecessary tracing and adjust tracing levels a bit
Tracing function entry/exits is a bit pointless
when VDPAU_TRACE=1 does the same thing.
v2: use WARN instead of ERR for application problems
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/vdpau/mixer.c')
-rw-r--r-- | src/gallium/state_trackers/vdpau/mixer.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gallium/state_trackers/vdpau/mixer.c b/src/gallium/state_trackers/vdpau/mixer.c index 3a879281a7b..f1c5a57d33e 100644 --- a/src/gallium/state_trackers/vdpau/mixer.c +++ b/src/gallium/state_trackers/vdpau/mixer.c @@ -52,8 +52,6 @@ vlVdpVideoMixerCreate(VdpDevice device, unsigned max_width, max_height, i; enum pipe_video_profile prof = PIPE_VIDEO_PROFILE_UNKNOWN; - VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Creating VideoMixer\n"); - vlVdpDevice *dev = vlGetDataHTAB(device); if (!dev) return VDP_STATUS_INVALID_HANDLE; @@ -128,19 +126,19 @@ vlVdpVideoMixerCreate(VdpDevice device, } ret = VDP_STATUS_INVALID_VALUE; if (vmixer->max_layers > 4) { - VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Max layers > 4 not supported\n", vmixer->max_layers); + VDPAU_MSG(VDPAU_WARN, "[VDPAU] Max layers > 4 not supported\n", vmixer->max_layers); goto no_params; } max_width = screen->get_video_param(screen, prof, PIPE_VIDEO_CAP_MAX_WIDTH); max_height = screen->get_video_param(screen, prof, PIPE_VIDEO_CAP_MAX_HEIGHT); if (vmixer->video_width < 48 || vmixer->video_width > max_width) { - VDPAU_MSG(VDPAU_TRACE, "[VDPAU] 48 < %u < %u not valid for width\n", vmixer->video_width, max_width); + VDPAU_MSG(VDPAU_WARN, "[VDPAU] 48 < %u < %u not valid for width\n", vmixer->video_width, max_width); goto no_params; } if (vmixer->video_height < 48 || vmixer->video_height > max_height) { - VDPAU_MSG(VDPAU_TRACE, "[VDPAU] 48 < %u < %u not valid for height\n", vmixer->video_height, max_height); + VDPAU_MSG(VDPAU_WARN, "[VDPAU] 48 < %u < %u not valid for height\n", vmixer->video_height, max_height); goto no_params; } vmixer->luma_key_min = 0.f; @@ -164,8 +162,6 @@ vlVdpVideoMixerDestroy(VdpVideoMixer mixer) { vlVdpVideoMixer *vmixer; - VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Destroying VideoMixer\n"); - vmixer = vlGetDataHTAB(mixer); if (!vmixer) return VDP_STATUS_INVALID_HANDLE; |