Changeset 3505
- Timestamp:
- Apr 7, 2011 7:22:35 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjmedia/src/pjmedia-videodev/dshow_dev.c
r3489 r3505 39 39 #pragma comment(lib, "Strmiids.lib") 40 40 #pragma comment(lib, "Rpcrt4.lib") 41 #pragma comment(lib, "Quartz.lib") 41 42 42 43 #define THIS_FILE "dshow_dev.c" … … 702 703 if (vi) 703 704 CoTaskMemFree(vi); 704 if (FAILED(hr)) 705 return hr; 705 if (FAILED(hr)) { 706 char msg[80]; 707 if (AMGetErrorText(hr, msg, sizeof(msg))) { 708 PJ_LOG(4,(THIS_FILE, "Error creating filter graph: %s (hr=0x%x)", 709 msg, hr)); 710 } 711 return PJ_EUNKNOWN; 712 } 706 713 707 714 return PJ_SUCCESS; … … 771 778 on_error: 772 779 dshow_stream_destroy((pjmedia_vid_dev_stream *)strm); 773 return PJ_EUNKNOWN;780 return status; 774 781 } 775 782 … … 850 857 hr = IMediaFilter_Run(stream->dgraph[i].media_filter, 0); 851 858 if (FAILED(hr)) { 852 return hr; 859 char msg[80]; 860 if (AMGetErrorText(hr, msg, sizeof(msg))) { 861 PJ_LOG(4,(THIS_FILE, "Error starting media: %s", msg)); 862 } 863 return PJ_EUNKNOWN; 853 864 } 854 865 }
Note: See TracChangeset
for help on using the changeset viewer.